home *** CD-ROM | disk | FTP | other *** search
/ Aminet 1 / Aminet - June 1993 [Walnut Creek].iso / usenet / sources / volume90 / unix / flex_2_3 / part12 < prev    next >
Encoding:
Internet Message Format  |  1990-08-19  |  70.3 KB

  1. Path: abcfd20.larc.nasa.gov!amiga-request
  2. From: amiga-request@abcfd20.larc.nasa.gov (Amiga Sources/Binaries Moderator)
  3. Subject: v90i239: flex 2.3 - fast lexical analyzer generator, Part12/13
  4. Reply-To: loftus@wpllabs.uucp (William P Loftus)
  5. Newsgroups: comp.sources.amiga
  6. Message-ID: <comp.sources.amiga:v90i239@abcfd20.larc.nasa.gov>
  7. Date: 19 Aug 90 22:43:30 GMT
  8. Approved: tadguy@uunet.UU.NET (Tad Guy)
  9. X-Mail-Submissions-To: amiga@uunet.uu.net
  10. X-Post-Discussions-To: comp.sys.amiga
  11.  
  12. Submitted-by: loftus@wpllabs.uucp (William P Loftus)
  13. Posting-number: Volume 90, Issue 239
  14. Archive-name: unix/flex-2.3/part12
  15.  
  16. #!/bin/sh
  17. # This is a shell archive.  Remove anything before this line, then unpack
  18. # it by saving it into a file and typing "sh file".  To overwrite existing
  19. # files, type "sh file -c".  You can also feed this as standard input via
  20. # unshar, or by typing "sh <file", e.g..  If this archive is complete, you
  21. # will see the following message at the end:
  22. #        "End of archive 12 (of 13)."
  23. # Contents:  initscan.c
  24. # Wrapped by tadguy@abcfd20 on Sun Aug 19 18:41:50 1990
  25. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  26. if test -f 'initscan.c' -a "${1}" != "-c" ; then 
  27.   echo shar: Will not clobber existing file \"'initscan.c'\"
  28. else
  29. echo shar: Extracting \"'initscan.c'\" \(67555 characters\)
  30. sed "s/^X//" >'initscan.c' <<'END_OF_FILE'
  31. X/* A lexical scanner generated by flex */
  32. X
  33. X/* scanner skeleton version:
  34. X * $Header: /usr/fsys/odin/a/vern/flex/RCS/flex.skel,v 2.13 90/05/26 17:24:13 vern Exp $
  35. X */
  36. X
  37. X#define FLEX_SCANNER
  38. X
  39. X#include <stdio.h>
  40. X
  41. X#ifdef __STDC__
  42. X
  43. X#ifndef DONT_HAVE_STDLIB_H
  44. X#include <stdlib.h>
  45. X#else
  46. Xvoid *malloc( unsigned );
  47. Xvoid free( void* );
  48. X#endif
  49. X
  50. X#define YY_USE_PROTOS
  51. X#define YY_USE_CONST
  52. X#endif
  53. X
  54. X
  55. X/* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
  56. X#ifdef c_plusplus
  57. X#ifndef __cplusplus
  58. X#define __cplusplus
  59. X#endif
  60. X#endif
  61. X
  62. X
  63. X#ifdef __cplusplus
  64. X
  65. X#ifndef __STDC__
  66. X#include <stdlib.h>
  67. X#endif
  68. X
  69. X#include <osfcn.h>
  70. X
  71. X/* use prototypes in function declarations */
  72. X#define YY_USE_PROTOS
  73. X
  74. X/* the "const" storage-class-modifier is valid */
  75. X#define YY_USE_CONST
  76. X
  77. X#endif
  78. X
  79. X
  80. X#ifdef __TURBOC__
  81. X#define YY_USE_CONST
  82. X#endif
  83. X
  84. X
  85. X#ifndef YY_USE_CONST
  86. X#define const
  87. X#endif
  88. X
  89. X
  90. X#ifdef YY_USE_PROTOS
  91. X#define YY_PROTO(proto) proto
  92. X#else
  93. X#define YY_PROTO(proto) ()
  94. X/* there's no standard place to get these definitions */
  95. Xchar *malloc();
  96. Xint free();
  97. Xint read();
  98. X#endif
  99. X
  100. X
  101. X/* amount of stuff to slurp up with each read */
  102. X#ifndef YY_READ_BUF_SIZE
  103. X#define YY_READ_BUF_SIZE 8192
  104. X#endif
  105. X
  106. X/* returned upon end-of-file */
  107. X#define YY_END_TOK 0
  108. X
  109. X/* copy whatever the last rule matched to the standard output */
  110. X
  111. X/* cast to (char *) is because for 8-bit chars, yytext is (unsigned char *) */
  112. X/* this used to be an fputs(), but since the string might contain NUL's,
  113. X * we now use fwrite()
  114. X */
  115. X#define ECHO (void) fwrite( (char *) yytext, yyleng, 1, yyout )
  116. X
  117. X/* gets input and stuffs it into "buf".  number of characters read, or YY_NULL,
  118. X * is returned in "result".
  119. X */
  120. X#define YY_INPUT(buf,result,max_size) \
  121. X    if ( (result = read( fileno(yyin), (char *) buf, max_size )) < 0 ) \
  122. X        YY_FATAL_ERROR( "read() in flex scanner failed" );
  123. X#define YY_NULL 0
  124. X
  125. X/* no semi-colon after return; correct usage is to write "yyterminate();" -
  126. X * we don't want an extra ';' after the "return" because that will cause
  127. X * some compilers to complain about unreachable statements.
  128. X */
  129. X#define yyterminate() return ( YY_NULL )
  130. X
  131. X/* report a fatal error */
  132. X
  133. X/* The funky do-while is used to turn this macro definition into
  134. X * a single C statement (which needs a semi-colon terminator).
  135. X * This avoids problems with code like:
  136. X *
  137. X *     if ( something_happens )
  138. X *        YY_FATAL_ERROR( "oops, the something happened" );
  139. X *    else
  140. X *        everything_okay();
  141. X *
  142. X * Prior to using the do-while the compiler would get upset at the
  143. X * "else" because it interpreted the "if" statement as being all
  144. X * done when it reached the ';' after the YY_FATAL_ERROR() call.
  145. X */
  146. X
  147. X#define YY_FATAL_ERROR(msg) \
  148. X    do \
  149. X        { \
  150. X        (void) fputs( msg, stderr ); \
  151. X        (void) putc( '\n', stderr ); \
  152. X        exit( 1 ); \
  153. X        } \
  154. X    while ( 0 )
  155. X
  156. X/* default yywrap function - always treat EOF as an EOF */
  157. X#define yywrap() 1
  158. X
  159. X/* enter a start condition.  This macro really ought to take a parameter,
  160. X * but we do it the disgusting crufty way forced on us by the ()-less
  161. X * definition of BEGIN
  162. X */
  163. X#define BEGIN yy_start = 1 + 2 *
  164. X
  165. X/* action number for EOF rule of a given start state */
  166. X#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
  167. X
  168. X/* special action meaning "start processing a new file" */
  169. X#define YY_NEW_FILE \
  170. X    do \
  171. X        { \
  172. X        yy_init_buffer( yy_current_buffer, yyin ); \
  173. X        yy_load_buffer_state(); \
  174. X        } \
  175. X    while ( 0 )
  176. X
  177. X/* default declaration of generated scanner - a define so the user can
  178. X * easily add parameters
  179. X */
  180. X#define YY_DECL int yylex YY_PROTO(( void )) 
  181. X
  182. X/* code executed at the end of each rule */
  183. X#define YY_BREAK break;
  184. X
  185. X#define YY_END_OF_BUFFER_CHAR 0
  186. X
  187. X#ifndef YY_BUF_SIZE
  188. X#define YY_BUF_SIZE (YY_READ_BUF_SIZE * 2) /* size of default input buffer */
  189. X#endif
  190. X
  191. Xtypedef struct yy_buffer_state *YY_BUFFER_STATE;
  192. X
  193. X#define YY_CHAR unsigned char
  194. X# line 1 "scan.l"
  195. X#define INITIAL 0
  196. X/* scan.l - scanner for flex input */
  197. X# line 5 "scan.l"
  198. X/*-
  199. X * Copyright (c) 1990 The Regents of the University of California.
  200. X * All rights reserved.
  201. X *
  202. X * This code is derived from software contributed to Berkeley by
  203. X * Vern Paxson.
  204. X * 
  205. X * The United States Government has rights in this work pursuant
  206. X * to contract no. DE-AC03-76SF00098 between the United States
  207. X * Department of Energy and the University of California.
  208. X *
  209. X * Redistribution and use in source and binary forms are permitted provided
  210. X * that: (1) source distributions retain this entire copyright notice and
  211. X * comment, and (2) distributions including binaries display the following
  212. X * acknowledgement:  ``This product includes software developed by the
  213. X * University of California, Berkeley and its contributors'' in the
  214. X * documentation or other materials provided with the distribution and in
  215. X * all advertising materials mentioning features or use of this software.
  216. X * Neither the name of the University nor the names of its contributors may
  217. X * be used to endorse or promote products derived from this software without
  218. X * specific prior written permission.
  219. X * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
  220. X * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
  221. X * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  222. X */
  223. X
  224. X#ifndef lint
  225. Xstatic char rcsid[] =
  226. X    "@(#) $Header: /usr/fsys/odin/a/vern/flex/RCS/scan.l,v 2.9 90/06/27 23:48:34 vern Exp $ (LBL)";
  227. X#endif
  228. X
  229. X#undef yywrap
  230. X
  231. X#include "flexdef.h"
  232. X#include "parse.h"
  233. X
  234. X#define ACTION_ECHO fprintf( temp_action_file, "%s", yytext )
  235. X#define MARK_END_OF_PROLOG fprintf( temp_action_file, "%%%% end of prolog\n" );
  236. X
  237. X#undef YY_DECL
  238. X#define YY_DECL \
  239. X    int flexscan()
  240. X
  241. X#define RETURNCHAR \
  242. X    yylval = yytext[0]; \
  243. X    return ( CHAR );
  244. X
  245. X#define RETURNNAME \
  246. X    (void) strcpy( nmstr, (char *) yytext ); \
  247. X    return ( NAME );
  248. X
  249. X#define PUT_BACK_STRING(str, start) \
  250. X    for ( i = strlen( (char *) (str) ) - 1; i >= start; --i ) \
  251. X        unput((str)[i])
  252. X
  253. X#define CHECK_REJECT(str) \
  254. X    if ( all_upper( str ) ) \
  255. X        reject = true;
  256. X
  257. X#define CHECK_YYMORE(str) \
  258. X    if ( all_lower( str ) ) \
  259. X        yymore_used = true;
  260. X#define SECT2 1
  261. X#define SECT2PROLOG 2
  262. X#define SECT3 3
  263. X#define CODEBLOCK 4
  264. X#define PICKUPDEF 5
  265. X#define SC 6
  266. X#define CARETISBOL 7
  267. X#define NUM 8
  268. X#define QUOTE 9
  269. X#define FIRSTCCL 10
  270. X#define CCL 11
  271. X#define ACTION 12
  272. X#define RECOVER 13
  273. X#define BRACEERROR 14
  274. X#define C_COMMENT 15
  275. X#define ACTION_COMMENT 16
  276. X#define ACTION_STRING 17
  277. X#define PERCENT_BRACE_ACTION 18
  278. X#define USED_LIST 19
  279. X#define CODEBLOCK_2 20
  280. X#define XLATION 21
  281. X# line 84 "scan.l"
  282. X
  283. X/* done after the current pattern has been matched and before the
  284. X * corresponding action - sets up yytext
  285. X */
  286. X#define YY_DO_BEFORE_ACTION \
  287. X    yytext = yy_bp; \
  288. X    yyleng = yy_cp - yy_bp; \
  289. X    yy_hold_char = *yy_cp; \
  290. X    *yy_cp = '\0'; \
  291. X    yy_c_buf_p = yy_cp;
  292. X
  293. X#define EOB_ACT_CONTINUE_SCAN 0
  294. X#define EOB_ACT_END_OF_FILE 1
  295. X#define EOB_ACT_LAST_MATCH 2
  296. X
  297. X/* return all but the first 'n' matched characters back to the input stream */
  298. X#define yyless(n) \
  299. X    do \
  300. X        { \
  301. X        /* undo effects of setting up yytext */ \
  302. X        *yy_cp = yy_hold_char; \
  303. X        yy_c_buf_p = yy_cp = yy_bp + n; \
  304. X        YY_DO_BEFORE_ACTION; /* set up yytext again */ \
  305. X        } \
  306. X    while ( 0 )
  307. X
  308. X#define unput(c) yyunput( c, yytext )
  309. X
  310. X
  311. Xstruct yy_buffer_state
  312. X    {
  313. X    FILE *yy_input_file;
  314. X
  315. X    YY_CHAR *yy_ch_buf;        /* input buffer */
  316. X    YY_CHAR *yy_buf_pos;    /* current position in input buffer */
  317. X
  318. X    /* size of input buffer in bytes, not including room for EOB characters*/
  319. X    int yy_buf_size;    
  320. X
  321. X    /* number of characters read into yy_ch_buf, not including EOB characters */
  322. X    int yy_n_chars;
  323. X
  324. X    int yy_eof_status;        /* whether we've seen an EOF on this buffer */
  325. X#define EOF_NOT_SEEN 0
  326. X    /* "pending" happens when the EOF has been seen but there's still
  327. X     * some text process
  328. X     */
  329. X#define EOF_PENDING 1
  330. X#define EOF_DONE 2
  331. X    };
  332. X
  333. Xstatic YY_BUFFER_STATE yy_current_buffer;
  334. X
  335. X/* we provide macros for accessing buffer states in case in the
  336. X * future we want to put the buffer states in a more general
  337. X * "scanner state"
  338. X */
  339. X#define YY_CURRENT_BUFFER yy_current_buffer
  340. X
  341. X
  342. X/* yy_hold_char holds the character lost when yytext is formed */
  343. Xstatic YY_CHAR yy_hold_char;
  344. X
  345. Xstatic int yy_n_chars;        /* number of characters read into yy_ch_buf */
  346. X
  347. X
  348. X
  349. X#ifndef YY_USER_ACTION
  350. X#define YY_USER_ACTION
  351. X#endif
  352. X
  353. X#ifndef YY_USER_INIT
  354. X#define YY_USER_INIT
  355. X#endif
  356. X
  357. Xextern YY_CHAR *yytext;
  358. Xextern int yyleng;
  359. Xextern FILE *yyin, *yyout;
  360. X
  361. XYY_CHAR *yytext;
  362. Xint yyleng;
  363. X
  364. XFILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
  365. X
  366. X#define YY_END_OF_BUFFER 121
  367. Xtypedef int yy_state_type;
  368. Xstatic const short int yy_accept[341] =
  369. X    {   0,
  370. X        0,    0,    0,    0,    0,    0,  119,  119,    0,    0,
  371. X        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
  372. X        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
  373. X        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
  374. X        0,    0,    0,    0,  121,   19,    7,   18,   19,   16,
  375. X        1,   17,   19,   19,   19,   15,   67,   59,   60,   53,
  376. X       67,   66,   51,   67,   67,   67,   50,   49,   67,   52,
  377. X      120,   47,  119,  119,   28,   29,   28,   28,   28,   28,
  378. X       31,   30,   32,   73,  120,   69,   70,   72,   74,   88,
  379. X       89,   86,   85,   87,   75,   77,   76,   75,   81,   80,
  380. X
  381. X       81,   81,   83,   83,   83,   84,   99,  104,  103,  105,
  382. X      105,  100,  100,  100,   97,   98,  120,   33,   91,   90,
  383. X       22,   24,   23,  107,  109,  108,  111,  113,  114,  115,
  384. X       95,   95,   96,   95,   95,   95,   95,   38,   35,   34,
  385. X       38,   38,   44,   42,   45,   44,   44,   41,   41,   41,
  386. X       40,   41,    7,   18,    0,   16,    1,   17,    0,    2,
  387. X       14,    8,    0,   12,    4,    0,    0,    5,    0,    3,
  388. X       15,   59,   60,    0,    0,   56,    0,    0,    0,  117,
  389. X      117,  117,   55,   54,   55,   50,   49,   63,   50,    0,
  390. X       47,   46,  119,  119,   28,   28,   28,   28,   28,   31,
  391. X
  392. X       30,   71,   72,   85,  118,  118,  118,   78,   79,   82,
  393. X       99,    0,  102,    0,  101,  100,  100,  100,    0,   33,
  394. X       22,   20,  107,  106,  111,  112,   95,   95,   95,   92,
  395. X       95,   95,   95,   38,   35,   38,   38,   42,    0,   43,
  396. X       43,   43,   42,   40,    0,   13,   14,    8,    8,    0,
  397. X       12,    4,    0,    0,    0,    5,    0,    6,   57,    0,
  398. X       58,    0,   64,    0,    0,  117,  117,   55,   55,   65,
  399. X       63,   28,   28,   28,   25,    0,  118,  118,  100,  100,
  400. X        0,   21,   92,   92,   95,   95,   38,   38,    0,   39,
  401. X       43,   43,    0,   11,    4,    0,   11,    0,    0,    5,
  402. X
  403. X        0,    0,    0,  117,   28,   28,  118,  100,  100,   95,
  404. X       95,   38,   38,   43,    0,    9,    0,    0,    0,   28,
  405. X       28,  100,  100,   95,   95,   38,   38,    0,    0,   26,
  406. X       27,   93,   94,   93,   94,   36,   37,   10,   62,    0
  407. X    } ;
  408. X
  409. Xstatic const YY_CHAR yy_ec[256] =
  410. X    {   0,
  411. X        1,    1,    1,    1,    1,    1,    1,    1,    2,    3,
  412. X        1,    4,    1,    1,    1,    1,    1,    1,    1,    1,
  413. X        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  414. X        1,    5,    1,    6,    7,    8,    9,    1,   10,   11,
  415. X       11,   12,   11,   13,   14,   11,   15,   16,   16,   16,
  416. X       16,   16,   16,   16,   16,   16,   16,    1,    1,   17,
  417. X        1,   18,   11,    1,   24,   25,   26,   27,   28,   29,
  418. X       23,   23,   23,   30,   31,   23,   32,   33,   34,   31,
  419. X       23,   35,   36,   37,   38,   23,   23,   39,   40,   23,
  420. X       19,   20,   21,   22,   23,    1,   24,   25,   26,   27,
  421. X
  422. X       28,   29,   23,   23,   23,   30,   31,   23,   32,   33,
  423. X       34,   31,   23,   35,   36,   37,   38,   23,   23,   39,
  424. X       40,   23,   41,   42,   43,    1,    1,    1,    1,    1,
  425. X        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  426. X        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  427. X        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  428. X        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  429. X        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  430. X        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  431. X        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  432. X
  433. X        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  434. X        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  435. X        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  436. X        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  437. X        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  438. X        1,    1,    1,    1,    1
  439. X    } ;
  440. X
  441. Xstatic const YY_CHAR yy_meta[44] =
  442. X    {   0,
  443. X        1,    2,    3,    2,    2,    4,    1,    1,    1,    5,
  444. X        1,    6,    1,    7,    5,    8,    1,    1,    1,    9,
  445. X       10,    1,   11,   12,   12,   12,   12,   12,   12,   11,
  446. X       11,   11,   11,   11,   11,   11,   11,   11,   11,   11,
  447. X        5,    1,   13
  448. X    } ;
  449. X
  450. Xstatic const short int yy_base[404] =
  451. X    {   0,
  452. X        0,   43,   85,  126, 1371, 1370, 1369, 1353,  168, 1346,
  453. X      104,  108,  211,    0, 1332, 1320,  120,  252,   95,  119,
  454. X      137,  144,  100,  141,  295,    0, 1327, 1323,  113,  336,
  455. X      254,  255,  257,  258,  253,  268,  379,    0,  338,  421,
  456. X        0,    0,  273,  460, 1325, 1442,  281, 1442, 1287,    0,
  457. X      287, 1442, 1279,  472, 1257,    0, 1442,  425, 1442, 1442,
  458. X      147, 1442, 1239, 1235,   78,  513,  433, 1442,   83, 1442,
  459. X     1248,    0, 1247, 1442,    0, 1442,    0, 1218, 1205, 1194,
  460. X        0,  342, 1442, 1442, 1442, 1442, 1202,    0, 1442, 1442,
  461. X     1442, 1442, 1201, 1442, 1442, 1442, 1442,   79, 1442, 1442,
  462. X
  463. X      103, 1198, 1442,    0,  248, 1442,    0, 1442, 1442,  252,
  464. X     1199,    0, 1173, 1158, 1442, 1442, 1185, 1442, 1442, 1442,
  465. X        0, 1442, 1170,    0, 1442, 1152,    0, 1442, 1442,    0,
  466. X        0,  346, 1442, 1123,    0, 1125, 1105,    0,  352, 1442,
  467. X     1116, 1103, 1442,  356, 1442, 1100,  329, 1442,  360, 1093,
  468. X     1101,  333,  441, 1442,  445,    0,  449, 1442, 1101, 1442,
  469. X      365,  453, 1094,  466,    0,  480,  330,    0, 1095, 1442,
  470. X        0,  555, 1442, 1044, 1077, 1442, 1051,  133,  456, 1442,
  471. X     1059,    0,    0, 1442,  584,  563, 1442,    0, 1442, 1071,
  472. X        0, 1442, 1063, 1442,    0,    0, 1010, 1007,  627,    0,
  473. X
  474. X      484, 1442,    0,  998, 1442,  992,    0, 1442, 1442, 1442,
  475. X        0,  421, 1442,    0, 1442,    0,  971,  964,  992, 1442,
  476. X        0,  962,    0, 1442,    0, 1442,    0,  488,  921,  670,
  477. X        0,  717,  714,    0,  497,  715,  712,  569,  573, 1442,
  478. X      727,    0,  577,  726,  581, 1442,  585,    0,  590,  738,
  479. X      597,    0,  712,  683,  691,    0,  670, 1442, 1442,  623,
  480. X     1442,  591, 1442,  458,  702,  590,    0,    0,    0, 1442,
  481. X        0,  576,  569,    0, 1442,  593,  575,    0,  560,  546,
  482. X      567, 1442,    0,    0,  541,  529,  534,  527,  730, 1442,
  483. X      500,    0,  509, 1442,    0,  734, 1442,  468,  467,    0,
  484. X
  485. X      462,  704,  724, 1442,  461,  438, 1442,  440,  425,  433,
  486. X      405,  413,  398, 1442,  404, 1442,  359,  259,  332,  338,
  487. X      346,  334,  331,  257,  253,  226,  137,  133,   81,    0,
  488. X        0,    0,    0,    0,    0,    0,    0, 1442, 1442, 1442,
  489. X      753,  766,  779,  792,  805,  818,  831,  844,  857,  870,
  490. X      883,  896,  909,  922,  935,  948,  955,  967,  980,  986,
  491. X      998, 1011, 1024, 1037, 1050, 1063, 1070, 1082, 1089, 1101,
  492. X     1114, 1127, 1140, 1150, 1157, 1169, 1182, 1195, 1208, 1221,
  493. X     1234, 1241, 1253, 1266, 1279, 1282, 1284, 1296, 1309, 1315,
  494. X     1327, 1339, 1345, 1357, 1363, 1375, 1382, 1388, 1393, 1405,
  495. X
  496. X     1411, 1423, 1429
  497. X    } ;
  498. X
  499. Xstatic const short int yy_def[404] =
  500. X    {   0,
  501. X      340,  340,  341,  341,  342,  342,  343,  343,  340,    9,
  502. X      344,  344,  340,   13,  345,  345,  346,  346,  347,  347,
  503. X      348,  348,  349,  349,  340,   25,  350,  350,  345,  345,
  504. X      351,  351,  352,  352,  353,  353,  340,   37,  354,  354,
  505. X       37,   37,  355,  356,  340,  340,  340,  340,  340,  357,
  506. X      340,  340,  358,  359,  340,  360,  340,  340,  340,  340,
  507. X      340,  340,  340,  361,  362,  340,  340,  340,  340,  340,
  508. X      363,  364,  365,  340,  366,  340,  367,  367,  367,  366,
  509. X      368,  340,  340,  340,  340,  340,  340,  369,  340,  340,
  510. X      340,  340,  340,  340,  340,  340,  340,  362,  340,  340,
  511. X
  512. X      370,  371,  340,  372,  362,  340,  373,  340,  340,  374,
  513. X      340,  375,  375,  375,  340,  340,  376,  340,  340,  340,
  514. X      377,  340,  340,  378,  340,  340,  379,  340,  340,  380,
  515. X      381,  381,  340,  381,  382,  382,  382,  383,  340,  340,
  516. X      383,  383,  340,  340,  340,  340,  384,  340,  340,  340,
  517. X      340,  384,  340,  340,  340,  357,  340,  340,  358,  340,
  518. X      340,  385,  340,  340,  386,  340,  340,  387,  388,  340,
  519. X      360,  340,  340,  340,  389,  340,  340,  361,  361,  340,
  520. X      340,  390,  391,  340,  391,  340,  340,  392,  340,  363,
  521. X      364,  340,  365,  340,  366,  367,  367,  367,  340,  368,
  522. X
  523. X      340,  340,  369,  340,  340,  340,  393,  340,  340,  340,
  524. X      373,  374,  340,  374,  340,  375,  375,  375,  376,  340,
  525. X      377,  394,  378,  340,  379,  340,  381,  381,  381,  340,
  526. X      382,  382,  382,  383,  340,  383,  383,  340,  340,  340,
  527. X      340,  395,  340,  340,  340,  340,  340,  385,  385,  396,
  528. X      340,  397,  396,  340,  340,  398,  388,  340,  340,  389,
  529. X      340,  340,  340,  361,  361,  340,  399,  391,  185,  340,
  530. X      392,  367,  367,  199,  340,  400,  340,  401,  375,  375,
  531. X      394,  340,  230,  402,  382,  382,  383,  383,  340,  340,
  532. X      340,  403,  396,  340,  397,  396,  340,  340,  340,  398,
  533. X
  534. X      340,  361,  265,  340,  367,  367,  340,  375,  375,  382,
  535. X      382,  383,  383,  340,  340,  340,  340,  361,  361,  367,
  536. X      367,  375,  375,  382,  382,  383,  383,  340,  340,  367,
  537. X      367,  375,  375,  382,  382,  383,  383,  340,  340,    0,
  538. X      340,  340,  340,  340,  340,  340,  340,  340,  340,  340,
  539. X      340,  340,  340,  340,  340,  340,  340,  340,  340,  340,
  540. X      340,  340,  340,  340,  340,  340,  340,  340,  340,  340,
  541. X      340,  340,  340,  340,  340,  340,  340,  340,  340,  340,
  542. X      340,  340,  340,  340,  340,  340,  340,  340,  340,  340,
  543. X      340,  340,  340,  340,  340,  340,  340,  340,  340,  340,
  544. X
  545. X      340,  340,  340
  546. X    } ;
  547. X
  548. Xstatic const short int yy_nxt[1486] =
  549. X    {   0,
  550. X       46,   47,   48,   47,   47,   46,   46,   46,   49,   46,
  551. X       46,   46,   46,   46,   46,   46,   46,   46,   46,   46,
  552. X       46,   46,   50,   50,   50,   50,   50,   50,   50,   50,
  553. X       50,   50,   50,   50,   50,   50,   50,   50,   50,   50,
  554. X       46,   46,   46,   46,   51,   52,   51,   51,   46,   53,
  555. X       46,   54,   46,   46,   46,   46,   46,   55,   46,   46,
  556. X       46,   46,   46,   46,   46,   56,   56,   56,   56,   56,
  557. X       56,   56,   56,   56,   56,   56,   56,   56,   56,   56,
  558. X       56,   56,   56,   46,   46,   46,   58,   59,   58,   58,
  559. X       60,  188,   61,  181,  181,   62,   62,   96,  339,   62,
  560. X
  561. X       97,   63,   85,   64,   65,   82,   83,   82,   82,   82,
  562. X       83,   82,   82,  104,   98,  119,  182,  182,  206,  105,
  563. X      106,   96,   91,  189,   97,   66,   62,   67,   68,   67,
  564. X       67,   60,   92,   61,   69,   93,   62,   62,   98,   85,
  565. X       62,  207,   63,   85,   64,   65,   85,   70,  176,  176,
  566. X      100,  176,  179,  263,  104,  120,  101,  100,  102,  338,
  567. X      105,  106,   94,  101,  337,  102,   66,   62,   75,   75,
  568. X       76,   75,   75,   75,   75,   75,   75,   75,   75,   75,
  569. X       75,   75,   75,   75,   75,   75,   75,   75,   75,   75,
  570. X       77,   77,   77,   77,   77,   77,   77,   77,   77,   77,
  571. X
  572. X       77,   77,   78,   77,   77,   77,   77,   79,   75,   75,
  573. X       75,   84,   84,   85,   84,   84,   84,   84,   84,   84,
  574. X       84,   84,   84,   86,   84,   84,   84,   84,   87,   84,
  575. X       84,   84,   84,   88,   88,   88,   88,   88,   88,   88,
  576. X       88,   88,   88,   88,   88,   88,   88,   88,   88,   88,
  577. X       88,   84,   84,   84,   91,  128,  122,  122,  129,  125,
  578. X      125,  213,  336,  181,   92,  123,  123,   93,  126,  126,
  579. X      128,  214,  130,  129,  144,  145,  144,  144,  179,  263,
  580. X      335,  146,  153,  154,  153,  153,  182,  130,  157,  158,
  581. X      157,  157,  147,  334,   94,  107,  107,  108,  107,  107,
  582. X
  583. X      109,  107,  107,  107,  110,  107,  107,  107,  107,  111,
  584. X      107,  107,  107,  107,  107,  107,  107,  112,  112,  112,
  585. X      112,  112,  112,  112,  112,  112,  112,  112,  112,  113,
  586. X      112,  112,  112,  112,  114,  115,  107,  116,  119,  139,
  587. X      140,  139,  139,  201,  241,  201,  201,  228,  241,  228,
  588. X      228,  179,  263,  235,  229,  235,  235,  238,  333,  238,
  589. X      238,  243,  254,  243,  243,  255,  247,  242,  247,  247,
  590. X      332,  242,  141,  331,  330,  244,  329,  142,  120,  131,
  591. X      132,  133,  132,  132,  131,  131,  131,  134,  131,  131,
  592. X      131,  131,  131,  131,  131,  131,  131,  131,  131,  131,
  593. X
  594. X      131,  135,  135,  135,  135,  135,  135,  135,  135,  135,
  595. X      135,  135,  135,  136,  135,  135,  135,  135,  137,  131,
  596. X      131,  131,  139,  140,  139,  139,  172,  173,  172,  172,
  597. X      213,  328,  327,  174,  186,  187,  186,  186,  326,  325,
  598. X      214,  174,  153,  154,  153,  153,  245,  246,  245,  245,
  599. X      157,  158,  157,  157,  249,  141,  249,  249,  324,  323,
  600. X      142,  149,  145,  149,  149,  322,  175,  251,  150,  251,
  601. X      251,  264,  321,  302,  175,  151,  178,  179,  263,  152,
  602. X      162,  245,  246,  245,  253,  201,  320,  201,  201,  228,
  603. X      317,  228,  228,  316,  265,  163,  229,  164,  235,  163,
  604. X
  605. X      235,  235,  163,  315,  163,  163,  164,  165,  166,  167,
  606. X      168,  294,  169,  183,  183,  240,  183,  183,  183,  183,
  607. X      183,  183,  183,  183,  183,  183,  183,  183,  184,  183,
  608. X      183,  183,  183,  183,  183,  185,  185,  185,  185,  185,
  609. X      185,  185,  185,  185,  185,  185,  185,  185,  185,  185,
  610. X      185,  185,  185,  183,  183,  183,  172,  173,  172,  172,
  611. X      313,  312,  311,  174,  186,  187,  186,  186,  310,  282,
  612. X      238,  174,  238,  238,  289,  290,  289,  289,  243,  309,
  613. X      243,  243,  245,  246,  245,  245,  247,  308,  247,  247,
  614. X      205,  249,  244,  249,  249,  275,  175,  269,  251,  269,
  615. X
  616. X      251,  251,  306,  305,  175,  180,  269,  269,  269,  269,
  617. X      269,  269,  269,  269,  269,  269,  269,  269,  269,  269,
  618. X      269,  269,  269,  269,  301,  261,  270,  274,  274,  275,
  619. X      274,  274,  274,  274,  274,  274,  274,  274,  274,  274,
  620. X      274,  274,  274,  274,  274,  274,  274,  274,  274,  276,
  621. X      276,  276,  276,  276,  276,  276,  276,  276,  276,  276,
  622. X      276,  276,  276,  276,  276,  276,  276,  274,  274,  274,
  623. X      283,  283,  258,  283,  283,  283,  283,  283,  283,  283,
  624. X      283,  283,  283,  283,  283,  283,  283,  283,  283,  283,
  625. X      283,  283,  284,  284,  284,  284,  284,  284,  284,  284,
  626. X
  627. X      284,  284,  284,  284,  284,  284,  284,  284,  284,  284,
  628. X      283,  283,  283,  296,  297,  296,  296,  303,  299,  318,
  629. X      298,  179,  263,  179,  263,  303,  303,  303,  303,  303,
  630. X      303,  289,  290,  289,  289,  296,  297,  296,  296,  319,
  631. X      294,  244,  291,  288,  287,  286,  285,  319,  319,  319,
  632. X      319,  319,  319,   57,   57,   57,   57,   57,   57,   57,
  633. X       57,   57,   57,   57,   57,   57,   71,   71,   71,   71,
  634. X       71,   71,   71,   71,   71,   71,   71,   71,   71,   73,
  635. X       73,   73,   73,   73,   73,   73,   73,   73,   73,   73,
  636. X       73,   73,   81,   81,   81,   81,   81,   81,   81,   81,
  637. X
  638. X       81,   81,   81,   81,   81,   85,   85,   85,   85,   85,
  639. X       85,   85,   85,   85,   85,   85,   85,   85,   90,   90,
  640. X       90,   90,   90,   90,   90,   90,   90,   90,   90,   90,
  641. X       90,   95,   95,   95,   95,   95,   95,   95,   95,   95,
  642. X       95,   95,   95,   95,   99,   99,   99,   99,   99,   99,
  643. X       99,   99,   99,   99,   99,   99,   99,  103,  103,  103,
  644. X      103,  103,  103,  103,  103,  103,  103,  103,  103,  103,
  645. X      117,  117,  117,  117,  117,  117,  117,  117,  117,  117,
  646. X      117,  117,  117,  121,  121,  121,  121,  121,  121,  121,
  647. X      121,  121,  121,  121,  121,  121,  124,  124,  124,  124,
  648. X
  649. X      124,  124,  124,  124,  124,  124,  124,  124,  124,  127,
  650. X      127,  127,  127,  127,  127,  127,  127,  127,  127,  127,
  651. X      127,  127,  138,  138,  138,  138,  138,  138,  138,  138,
  652. X      138,  138,  138,  138,  138,  143,  143,  143,  143,  143,
  653. X      143,  143,  143,  143,  143,  143,  143,  143,  148,  148,
  654. X      148,  148,  148,  148,  148,  148,  148,  148,  148,  148,
  655. X      148,  156,  156,  230,  282,  156,  156,  159,  159,  159,
  656. X      159,  159,  159,  159,  159,  159,  159,  159,  159,  159,
  657. X      161,  161,  161,  161,  161,  161,  161,  161,  161,  161,
  658. X      161,  161,  171,  171,  220,  280,  171,  171,  178,  178,
  659. X
  660. X      279,  178,  178,  178,  178,  178,  178,  277,  178,  178,
  661. X      178,  180,  180,  204,  180,  180,  180,  180,  180,  180,
  662. X      180,  180,  180,  180,  190,  190,  190,  190,  190,  190,
  663. X      190,  190,  190,  190,  190,  190,  190,  192,  273,  272,
  664. X      192,  192,  192,  192,  192,  192,  192,  192,  192,  192,
  665. X      193,  193,  193,  193,  193,  193,  193,  193,  193,  193,
  666. X      193,  193,  193,  195,  195,  194,  195,  195,  195,  195,
  667. X      195,  195,  195,  191,  266,  195,  196,  196,  262,  261,
  668. X      196,  196,  200,  200,  259,  200,  200,  200,  200,  200,
  669. X      200,  200,  200,  200,  200,  203,  203,  258,  250,  203,
  670. X
  671. X      203,  205,  205,  160,  205,  205,  205,  205,  205,  205,
  672. X      205,  205,  205,  205,  208,  208,  244,  208,  208,  208,
  673. X      208,  208,  208,  208,  208,  208,  208,  210,  210,  239,
  674. X      210,  210,  210,  210,  210,  210,  239,  210,  210,  210,
  675. X      211,  211,  237,  236,  233,  211,  211,  211,  211,  211,
  676. X      212,  212,  232,  212,  212,  212,  212,  212,  212,  212,
  677. X      212,  212,  212,  216,  216,  230,  224,  216,  216,  219,
  678. X      219,  219,  219,  219,  219,  219,  219,  219,  219,  219,
  679. X      219,  219,  221,  221,  222,  221,  221,  220,  221,  221,
  680. X      221,  221,  221,  221,  221,  223,  223,  218,  223,  223,
  681. X
  682. X      217,  223,  223,  223,  223,  223,  223,  223,  225,  225,
  683. X      215,  209,  225,  225,  225,  225,  204,  225,  225,  225,
  684. X      225,  226,  226,  202,  226,  226,  226,  226,  226,  226,
  685. X      226,  226,  226,  226,  227,  227,  199,  227,  227,  227,
  686. X      227,  227,  227,  227,  198,  197,  227,  231,  231,  194,
  687. X      191,  231,  231,  234,  179,  177,  234,  234,  234,  234,
  688. X      234,  234,  234,  234,  234,  234,  240,  240,  170,  240,
  689. X      240,  240,  240,  240,  240,  240,  240,  240,  240,  248,
  690. X      248,  160,  248,  248,  248,  248,  248,  248,  248,  248,
  691. X      248,  248,  252,  252,  256,  256,  257,  257,  257,  257,
  692. X
  693. X      257,  257,  257,  257,  257,  257,  257,  257,  257,  260,
  694. X      260,  260,  260,  260,  260,  260,  260,  260,  260,  260,
  695. X      260,  260,  267,  155,  340,  118,  267,  268,  268,  118,
  696. X      268,  268,  268,  268,  268,  268,  268,  268,  268,  271,
  697. X      271,   89,  271,  271,  271,  271,  271,  271,  271,  271,
  698. X      271,  271,  278,   89,   80,   74,  278,  281,  281,  281,
  699. X      281,  281,  281,  281,  281,  281,  281,  281,  281,  281,
  700. X      292,   74,   72,   72,  292,  293,  293,  293,  293,  293,
  701. X      293,  293,  293,  293,  293,  293,  293,  293,  295,  295,
  702. X      340,  340,  295,  295,  300,  300,  340,  340,  300,  300,
  703. X
  704. X      304,  340,  340,  340,  304,  276,  276,  276,  276,  276,
  705. X      276,  276,  276,  276,  276,  276,  276,  276,  307,  340,
  706. X      340,  340,  307,  284,  284,  340,  284,  284,  284,  284,
  707. X      284,  284,  284,  284,  284,  284,  314,  340,  340,  340,
  708. X      314,   45,  340,  340,  340,  340,  340,  340,  340,  340,
  709. X      340,  340,  340,  340,  340,  340,  340,  340,  340,  340,
  710. X      340,  340,  340,  340,  340,  340,  340,  340,  340,  340,
  711. X      340,  340,  340,  340,  340,  340,  340,  340,  340,  340,
  712. X      340,  340,  340,  340,  340
  713. X    } ;
  714. X
  715. Xstatic const short int yy_chk[1486] =
  716. X    {   0,
  717. X        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  718. X        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  719. X        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  720. X        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  721. X        1,    1,    1,    2,    2,    2,    2,    2,    2,    2,
  722. X        2,    2,    2,    2,    2,    2,    2,    2,    2,    2,
  723. X        2,    2,    2,    2,    2,    2,    2,    2,    2,    2,
  724. X        2,    2,    2,    2,    2,    2,    2,    2,    2,    2,
  725. X        2,    2,    2,    2,    2,    2,    3,    3,    3,    3,
  726. X        3,   69,    3,   65,   98,    3,    3,   19,  329,    3,
  727. X
  728. X       19,    3,   23,    3,    3,   11,   11,   11,   11,   12,
  729. X       12,   12,   12,   23,   19,   29,   65,   98,  101,   23,
  730. X       23,   20,   17,   69,   20,    3,    3,    4,    4,    4,
  731. X        4,    4,   17,    4,    4,   17,    4,    4,   20,   21,
  732. X        4,  101,    4,   24,    4,    4,   22,    4,   61,   61,
  733. X       21,   61,  178,  178,   24,   29,   21,   22,   21,  328,
  734. X       24,   24,   17,   22,  327,   22,    4,    4,    9,    9,
  735. X        9,    9,    9,    9,    9,    9,    9,    9,    9,    9,
  736. X        9,    9,    9,    9,    9,    9,    9,    9,    9,    9,
  737. X        9,    9,    9,    9,    9,    9,    9,    9,    9,    9,
  738. X
  739. X        9,    9,    9,    9,    9,    9,    9,    9,    9,    9,
  740. X        9,   13,   13,   13,   13,   13,   13,   13,   13,   13,
  741. X       13,   13,   13,   13,   13,   13,   13,   13,   13,   13,
  742. X       13,   13,   13,   13,   13,   13,   13,   13,   13,   13,
  743. X       13,   13,   13,   13,   13,   13,   13,   13,   13,   13,
  744. X       13,   13,   13,   13,   18,   35,   31,   32,   35,   33,
  745. X       34,  110,  326,  105,   18,   31,   32,   18,   33,   34,
  746. X       36,  110,   35,   36,   43,   43,   43,   43,  318,  318,
  747. X      325,   43,   47,   47,   47,   47,  105,   36,   51,   51,
  748. X       51,   51,   43,  324,   18,   25,   25,   25,   25,   25,
  749. X
  750. X       25,   25,   25,   25,   25,   25,   25,   25,   25,   25,
  751. X       25,   25,   25,   25,   25,   25,   25,   25,   25,   25,
  752. X       25,   25,   25,   25,   25,   25,   25,   25,   25,   25,
  753. X       25,   25,   25,   25,   25,   25,   25,   25,   30,   39,
  754. X       39,   39,   39,   82,  147,   82,   82,  132,  152,  132,
  755. X      132,  319,  319,  139,  132,  139,  139,  144,  323,  144,
  756. X      144,  149,  167,  149,  149,  167,  161,  147,  161,  161,
  757. X      322,  152,   39,  321,  320,  149,  317,   39,   30,   37,
  758. X       37,   37,   37,   37,   37,   37,   37,   37,   37,   37,
  759. X       37,   37,   37,   37,   37,   37,   37,   37,   37,   37,
  760. X
  761. X       37,   37,   37,   37,   37,   37,   37,   37,   37,   37,
  762. X       37,   37,   37,   37,   37,   37,   37,   37,   37,   37,
  763. X       37,   37,   40,   40,   40,   40,   58,   58,   58,   58,
  764. X      212,  315,  313,   58,   67,   67,   67,   67,  312,  311,
  765. X      212,   67,  153,  153,  153,  153,  155,  155,  155,  155,
  766. X      157,  157,  157,  157,  162,   40,  162,  162,  310,  309,
  767. X       40,   44,   44,   44,   44,  308,   58,  164,   44,  164,
  768. X      164,  179,  306,  264,   67,   44,  179,  264,  264,   44,
  769. X       54,  166,  166,  166,  166,  201,  305,  201,  201,  228,
  770. X      301,  228,  228,  299,  179,   54,  228,   54,  235,   54,
  771. X
  772. X      235,  235,   54,  298,   54,   54,   54,   54,   54,   54,
  773. X       54,  293,   54,   66,   66,  291,   66,   66,   66,   66,
  774. X       66,   66,   66,   66,   66,   66,   66,   66,   66,   66,
  775. X       66,   66,   66,   66,   66,   66,   66,   66,   66,   66,
  776. X       66,   66,   66,   66,   66,   66,   66,   66,   66,   66,
  777. X       66,   66,   66,   66,   66,   66,  172,  172,  172,  172,
  778. X      288,  287,  286,  172,  186,  186,  186,  186,  285,  281,
  779. X      238,  186,  238,  238,  239,  239,  239,  239,  243,  280,
  780. X      243,  243,  245,  245,  245,  245,  247,  279,  247,  247,
  781. X      277,  249,  243,  249,  249,  276,  172,  185,  251,  185,
  782. X
  783. X      251,  251,  273,  272,  186,  266,  185,  185,  185,  185,
  784. X      185,  185,  185,  185,  185,  185,  185,  185,  185,  185,
  785. X      185,  185,  185,  185,  262,  260,  185,  199,  199,  199,
  786. X      199,  199,  199,  199,  199,  199,  199,  199,  199,  199,
  787. X      199,  199,  199,  199,  199,  199,  199,  199,  199,  199,
  788. X      199,  199,  199,  199,  199,  199,  199,  199,  199,  199,
  789. X      199,  199,  199,  199,  199,  199,  199,  199,  199,  199,
  790. X      230,  230,  257,  230,  230,  230,  230,  230,  230,  230,
  791. X      230,  230,  230,  230,  230,  230,  230,  230,  230,  230,
  792. X      230,  230,  230,  230,  230,  230,  230,  230,  230,  230,
  793. X
  794. X      230,  230,  230,  230,  230,  230,  230,  230,  230,  230,
  795. X      230,  230,  230,  253,  253,  253,  253,  265,  255,  302,
  796. X      254,  265,  265,  302,  302,  265,  265,  265,  265,  265,
  797. X      265,  289,  289,  289,  289,  296,  296,  296,  296,  303,
  798. X      250,  244,  241,  237,  236,  233,  232,  303,  303,  303,
  799. X      303,  303,  303,  341,  341,  341,  341,  341,  341,  341,
  800. X      341,  341,  341,  341,  341,  341,  342,  342,  342,  342,
  801. X      342,  342,  342,  342,  342,  342,  342,  342,  342,  343,
  802. X      343,  343,  343,  343,  343,  343,  343,  343,  343,  343,
  803. X      343,  343,  344,  344,  344,  344,  344,  344,  344,  344,
  804. X
  805. X      344,  344,  344,  344,  344,  345,  345,  345,  345,  345,
  806. X      345,  345,  345,  345,  345,  345,  345,  345,  346,  346,
  807. X      346,  346,  346,  346,  346,  346,  346,  346,  346,  346,
  808. X      346,  347,  347,  347,  347,  347,  347,  347,  347,  347,
  809. X      347,  347,  347,  347,  348,  348,  348,  348,  348,  348,
  810. X      348,  348,  348,  348,  348,  348,  348,  349,  349,  349,
  811. X      349,  349,  349,  349,  349,  349,  349,  349,  349,  349,
  812. X      350,  350,  350,  350,  350,  350,  350,  350,  350,  350,
  813. X      350,  350,  350,  351,  351,  351,  351,  351,  351,  351,
  814. X      351,  351,  351,  351,  351,  351,  352,  352,  352,  352,
  815. X
  816. X      352,  352,  352,  352,  352,  352,  352,  352,  352,  353,
  817. X      353,  353,  353,  353,  353,  353,  353,  353,  353,  353,
  818. X      353,  353,  354,  354,  354,  354,  354,  354,  354,  354,
  819. X      354,  354,  354,  354,  354,  355,  355,  355,  355,  355,
  820. X      355,  355,  355,  355,  355,  355,  355,  355,  356,  356,
  821. X      356,  356,  356,  356,  356,  356,  356,  356,  356,  356,
  822. X      356,  357,  357,  229,  222,  357,  357,  358,  358,  358,
  823. X      358,  358,  358,  358,  358,  358,  358,  358,  358,  358,
  824. X      359,  359,  359,  359,  359,  359,  359,  359,  359,  359,
  825. X      359,  359,  360,  360,  219,  218,  360,  360,  361,  361,
  826. X
  827. X      217,  361,  361,  361,  361,  361,  361,  206,  361,  361,
  828. X      361,  362,  362,  204,  362,  362,  362,  362,  362,  362,
  829. X      362,  362,  362,  362,  363,  363,  363,  363,  363,  363,
  830. X      363,  363,  363,  363,  363,  363,  363,  364,  198,  197,
  831. X      364,  364,  364,  364,  364,  364,  364,  364,  364,  364,
  832. X      365,  365,  365,  365,  365,  365,  365,  365,  365,  365,
  833. X      365,  365,  365,  366,  366,  193,  366,  366,  366,  366,
  834. X      366,  366,  366,  190,  181,  366,  367,  367,  177,  175,
  835. X      367,  367,  368,  368,  174,  368,  368,  368,  368,  368,
  836. X      368,  368,  368,  368,  368,  369,  369,  169,  163,  369,
  837. X
  838. X      369,  370,  370,  159,  370,  370,  370,  370,  370,  370,
  839. X      370,  370,  370,  370,  371,  371,  151,  371,  371,  371,
  840. X      371,  371,  371,  371,  371,  371,  371,  372,  372,  150,
  841. X      372,  372,  372,  372,  372,  372,  146,  372,  372,  372,
  842. X      373,  373,  142,  141,  137,  373,  373,  373,  373,  373,
  843. X      374,  374,  136,  374,  374,  374,  374,  374,  374,  374,
  844. X      374,  374,  374,  375,  375,  134,  126,  375,  375,  376,
  845. X      376,  376,  376,  376,  376,  376,  376,  376,  376,  376,
  846. X      376,  376,  377,  377,  123,  377,  377,  117,  377,  377,
  847. X      377,  377,  377,  377,  377,  378,  378,  114,  378,  378,
  848. X
  849. X      113,  378,  378,  378,  378,  378,  378,  378,  379,  379,
  850. X      111,  102,  379,  379,  379,  379,   93,  379,  379,  379,
  851. X      379,  380,  380,   87,  380,  380,  380,  380,  380,  380,
  852. X      380,  380,  380,  380,  381,  381,   80,  381,  381,  381,
  853. X      381,  381,  381,  381,   79,   78,  381,  382,  382,   73,
  854. X       71,  382,  382,  383,   64,   63,  383,  383,  383,  383,
  855. X      383,  383,  383,  383,  383,  383,  384,  384,   55,  384,
  856. X      384,  384,  384,  384,  384,  384,  384,  384,  384,  385,
  857. X      385,   53,  385,  385,  385,  385,  385,  385,  385,  385,
  858. X      385,  385,  386,  386,  387,  387,  388,  388,  388,  388,
  859. X
  860. X      388,  388,  388,  388,  388,  388,  388,  388,  388,  389,
  861. X      389,  389,  389,  389,  389,  389,  389,  389,  389,  389,
  862. X      389,  389,  390,   49,   45,   28,  390,  391,  391,   27,
  863. X      391,  391,  391,  391,  391,  391,  391,  391,  391,  392,
  864. X      392,   16,  392,  392,  392,  392,  392,  392,  392,  392,
  865. X      392,  392,  393,   15,   10,    8,  393,  394,  394,  394,
  866. X      394,  394,  394,  394,  394,  394,  394,  394,  394,  394,
  867. X      395,    7,    6,    5,  395,  396,  396,  396,  396,  396,
  868. X      396,  396,  396,  396,  396,  396,  396,  396,  397,  397,
  869. X        0,    0,  397,  397,  398,  398,    0,    0,  398,  398,
  870. X
  871. X      399,    0,    0,    0,  399,  400,  400,  400,  400,  400,
  872. X      400,  400,  400,  400,  400,  400,  400,  400,  401,    0,
  873. X        0,    0,  401,  402,  402,    0,  402,  402,  402,  402,
  874. X      402,  402,  402,  402,  402,  402,  403,    0,    0,    0,
  875. X      403,  340,  340,  340,  340,  340,  340,  340,  340,  340,
  876. X      340,  340,  340,  340,  340,  340,  340,  340,  340,  340,
  877. X      340,  340,  340,  340,  340,  340,  340,  340,  340,  340,
  878. X      340,  340,  340,  340,  340,  340,  340,  340,  340,  340,
  879. X      340,  340,  340,  340,  340
  880. X    } ;
  881. X
  882. Xstatic yy_state_type yy_last_accepting_state;
  883. Xstatic YY_CHAR *yy_last_accepting_cpos;
  884. X
  885. X/* the intent behind this definition is that it'll catch
  886. X * any uses of REJECT which flex missed
  887. X */
  888. X#define REJECT reject_used_but_not_detected
  889. X#define yymore() yymore_used_but_not_detected
  890. X#define YY_MORE_ADJ 0
  891. X
  892. X/* these variables are all declared out here so that section 3 code can
  893. X * manipulate them
  894. X */
  895. X/* points to current character in buffer */
  896. Xstatic YY_CHAR *yy_c_buf_p = (YY_CHAR *) 0;
  897. Xstatic int yy_init = 1;        /* whether we need to initialize */
  898. Xstatic int yy_start = 0;    /* start state number */
  899. X
  900. X/* flag which is used to allow yywrap()'s to do buffer switches
  901. X * instead of setting up a fresh yyin.  A bit of a hack ...
  902. X */
  903. Xstatic int yy_did_buffer_switch_on_eof;
  904. X
  905. Xstatic yy_state_type yy_get_previous_state YY_PROTO(( void ));
  906. Xstatic yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state ));
  907. Xstatic int yy_get_next_buffer YY_PROTO(( void ));
  908. Xstatic void yyunput YY_PROTO(( YY_CHAR c, YY_CHAR *buf_ptr ));
  909. Xvoid yyrestart YY_PROTO(( FILE *input_file ));
  910. Xvoid yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer ));
  911. Xvoid yy_load_buffer_state YY_PROTO(( void ));
  912. XYY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, int size ));
  913. Xvoid yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b ));
  914. Xvoid yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file ));
  915. X
  916. X#define yy_new_buffer yy_create_buffer
  917. X
  918. X#ifdef __cplusplus
  919. Xstatic int yyinput YY_PROTO(( void ));
  920. X#else
  921. Xstatic int input YY_PROTO(( void ));
  922. X#endif
  923. X
  924. XYY_DECL
  925. X    {
  926. X    register yy_state_type yy_current_state;
  927. X    register YY_CHAR *yy_cp, *yy_bp;
  928. X    register int yy_act;
  929. X
  930. X
  931. X    static int bracelevel, didadef;
  932. X    int i, indented_code, checking_used, new_xlation;
  933. X    int doing_codeblock = false;
  934. X    Char nmdef[MAXLINE], myesc();
  935. X
  936. X
  937. X    if ( yy_init )
  938. X    {
  939. X    YY_USER_INIT;
  940. X
  941. X    if ( ! yy_start )
  942. X        yy_start = 1;    /* first start state */
  943. X
  944. X    if ( ! yyin )
  945. X        yyin = stdin;
  946. X
  947. X    if ( ! yyout )
  948. X        yyout = stdout;
  949. X
  950. X    if ( yy_current_buffer )
  951. X        yy_init_buffer( yy_current_buffer, yyin );
  952. X    else
  953. X        yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE );
  954. X
  955. X    yy_load_buffer_state();
  956. X
  957. X    yy_init = 0;
  958. X    }
  959. X
  960. X    while ( 1 )        /* loops until end-of-file is reached */
  961. X    {
  962. X    yy_cp = yy_c_buf_p;
  963. X
  964. X    /* support of yytext */
  965. X    *yy_cp = yy_hold_char;
  966. X
  967. X    /* yy_bp points to the position in yy_ch_buf of the start of the
  968. X     * current run.
  969. X     */
  970. X    yy_bp = yy_cp;
  971. X
  972. X    yy_current_state = yy_start;
  973. X    if ( yy_bp[-1] == '\n' )
  974. X        ++yy_current_state;
  975. Xyy_match:
  976. X    do
  977. X        {
  978. X        register YY_CHAR yy_c = yy_ec[*yy_cp];
  979. X        if ( yy_accept[yy_current_state] )
  980. X        {
  981. X        yy_last_accepting_state = yy_current_state;
  982. X        yy_last_accepting_cpos = yy_cp;
  983. X        }
  984. X        while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  985. X        {
  986. X        yy_current_state = yy_def[yy_current_state];
  987. X        if ( yy_current_state >= 341 )
  988. X            yy_c = yy_meta[yy_c];
  989. X        }
  990. X        yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
  991. X        ++yy_cp;
  992. X        }
  993. X    while ( yy_current_state != 340 );
  994. X    yy_cp = yy_last_accepting_cpos;
  995. X    yy_current_state = yy_last_accepting_state;
  996. X
  997. Xyy_find_action:
  998. X    yy_act = yy_accept[yy_current_state];
  999. X
  1000. X    YY_DO_BEFORE_ACTION;
  1001. X    YY_USER_ACTION;
  1002. X
  1003. Xdo_action:    /* this label is used only to access EOF actions */
  1004. X
  1005. X
  1006. X    switch ( yy_act )
  1007. X        {
  1008. X        case 0: /* must backtrack */
  1009. X        /* undo the effects of YY_DO_BEFORE_ACTION */
  1010. X        *yy_cp = yy_hold_char;
  1011. X        yy_cp = yy_last_accepting_cpos;
  1012. X        yy_current_state = yy_last_accepting_state;
  1013. X        goto yy_find_action;
  1014. X
  1015. Xcase 1:
  1016. X# line 90 "scan.l"
  1017. Xindented_code = true; BEGIN(CODEBLOCK);
  1018. X    YY_BREAK
  1019. Xcase 2:
  1020. X# line 91 "scan.l"
  1021. X++linenum; /* treat as a comment */
  1022. X    YY_BREAK
  1023. Xcase 3:
  1024. X# line 92 "scan.l"
  1025. XECHO; BEGIN(C_COMMENT);
  1026. X    YY_BREAK
  1027. Xcase 4:
  1028. X# line 93 "scan.l"
  1029. Xreturn ( SCDECL );
  1030. X    YY_BREAK
  1031. Xcase 5:
  1032. X# line 94 "scan.l"
  1033. Xreturn ( XSCDECL );
  1034. X    YY_BREAK
  1035. Xcase 6:
  1036. X# line 95 "scan.l"
  1037. X{
  1038. X            ++linenum;
  1039. X            line_directive_out( stdout );
  1040. X            indented_code = false;
  1041. X            BEGIN(CODEBLOCK);
  1042. X            }
  1043. X    YY_BREAK
  1044. Xcase 7:
  1045. X# line 102 "scan.l"
  1046. Xreturn ( WHITESPACE );
  1047. X    YY_BREAK
  1048. Xcase 8:
  1049. X# line 104 "scan.l"
  1050. X{
  1051. X            sectnum = 2;
  1052. X            line_directive_out( stdout );
  1053. X            BEGIN(SECT2PROLOG);
  1054. X            return ( SECTEND );
  1055. X            }
  1056. X    YY_BREAK
  1057. Xcase 9:
  1058. X# line 111 "scan.l"
  1059. X{
  1060. X    pinpoint_message( "warning - %%used/%%unused have been deprecated" );
  1061. X            checking_used = REALLY_USED; BEGIN(USED_LIST);
  1062. X            }
  1063. X    YY_BREAK
  1064. Xcase 10:
  1065. X# line 115 "scan.l"
  1066. X{
  1067. X            checking_used = REALLY_NOT_USED; BEGIN(USED_LIST);
  1068. X    pinpoint_message( "warning - %%used/%%unused have been deprecated" );
  1069. X            checking_used = REALLY_NOT_USED; BEGIN(USED_LIST);
  1070. X            }
  1071. X    YY_BREAK
  1072. Xcase 11:
  1073. X# line 122 "scan.l"
  1074. X{
  1075. X#ifdef NOTDEF
  1076. X            fprintf( stderr,
  1077. X                 "old-style lex command at line %d ignored:\n\t%s",
  1078. X                 linenum, yytext );
  1079. X#endif
  1080. X            ++linenum;
  1081. X            }
  1082. X    YY_BREAK
  1083. Xcase 12:
  1084. X# line 131 "scan.l"
  1085. X/* ignore old lex directive */
  1086. X    YY_BREAK
  1087. Xcase 13:
  1088. X# line 133 "scan.l"
  1089. X{
  1090. X            ++linenum;
  1091. X            xlation =
  1092. X                (int *) malloc( sizeof( int ) * (unsigned) csize );
  1093. X
  1094. X            if ( ! xlation )
  1095. X                flexfatal(
  1096. X                "dynamic memory failure building %t table" );
  1097. X
  1098. X            for ( i = 0; i < csize; ++i )
  1099. X                xlation[i] = 0;
  1100. X
  1101. X            num_xlations = 0;
  1102. X
  1103. X            BEGIN(XLATION);
  1104. X            }
  1105. X    YY_BREAK
  1106. Xcase 14:
  1107. X# line 150 "scan.l"
  1108. Xsynerr( "unrecognized '%' directive" );
  1109. X    YY_BREAK
  1110. Xcase 15:
  1111. X# line 152 "scan.l"
  1112. X{
  1113. X            (void) strcpy( nmstr, (char *) yytext );
  1114. X            didadef = false;
  1115. X            BEGIN(PICKUPDEF);
  1116. X            }
  1117. X    YY_BREAK
  1118. Xcase 16:
  1119. X# line 158 "scan.l"
  1120. XRETURNNAME;
  1121. X    YY_BREAK
  1122. Xcase 17:
  1123. X# line 159 "scan.l"
  1124. X++linenum; /* allows blank lines in section 1 */
  1125. X    YY_BREAK
  1126. Xcase 18:
  1127. X# line 160 "scan.l"
  1128. X++linenum; return ( '\n' );
  1129. X    YY_BREAK
  1130. Xcase 19:
  1131. X# line 161 "scan.l"
  1132. Xsynerr( "illegal character" ); BEGIN(RECOVER);
  1133. X    YY_BREAK
  1134. Xcase 20:
  1135. X# line 164 "scan.l"
  1136. XECHO; BEGIN(INITIAL);
  1137. X    YY_BREAK
  1138. Xcase 21:
  1139. X# line 165 "scan.l"
  1140. X++linenum; ECHO; BEGIN(INITIAL);
  1141. X    YY_BREAK
  1142. Xcase 22:
  1143. X# line 166 "scan.l"
  1144. XECHO;
  1145. X    YY_BREAK
  1146. Xcase 23:
  1147. X# line 167 "scan.l"
  1148. XECHO;
  1149. X    YY_BREAK
  1150. Xcase 24:
  1151. X# line 168 "scan.l"
  1152. X++linenum; ECHO;
  1153. X    YY_BREAK
  1154. Xcase 25:
  1155. X# line 171 "scan.l"
  1156. X++linenum; BEGIN(INITIAL);
  1157. X    YY_BREAK
  1158. Xcase 26:
  1159. X# line 172 "scan.l"
  1160. XECHO; CHECK_REJECT(yytext);
  1161. X    YY_BREAK
  1162. Xcase 27:
  1163. X# line 173 "scan.l"
  1164. XECHO; CHECK_YYMORE(yytext);
  1165. X    YY_BREAK
  1166. Xcase 28:
  1167. X# line 174 "scan.l"
  1168. XECHO;
  1169. X    YY_BREAK
  1170. Xcase 29:
  1171. X# line 175 "scan.l"
  1172. X{
  1173. X            ++linenum;
  1174. X            ECHO;
  1175. X            if ( indented_code )
  1176. X                BEGIN(INITIAL);
  1177. X            }
  1178. X    YY_BREAK
  1179. Xcase 30:
  1180. X# line 183 "scan.l"
  1181. X/* separates name and definition */
  1182. X    YY_BREAK
  1183. Xcase 31:
  1184. X# line 185 "scan.l"
  1185. X{
  1186. X            (void) strcpy( (char *) nmdef, (char *) yytext );
  1187. X
  1188. X            for ( i = strlen( (char *) nmdef ) - 1;
  1189. X                  i >= 0 &&
  1190. X                  nmdef[i] == ' ' || nmdef[i] == '\t';
  1191. X                  --i )
  1192. X                ;
  1193. X
  1194. X            nmdef[i + 1] = '\0';
  1195. X
  1196. X                        ndinstal( nmstr, nmdef );
  1197. X            didadef = true;
  1198. X            }
  1199. X    YY_BREAK
  1200. Xcase 32:
  1201. X# line 200 "scan.l"
  1202. X{
  1203. X            if ( ! didadef )
  1204. X                synerr( "incomplete name definition" );
  1205. X            BEGIN(INITIAL);
  1206. X            ++linenum;
  1207. X            }
  1208. X    YY_BREAK
  1209. Xcase 33:
  1210. X# line 207 "scan.l"
  1211. X++linenum; BEGIN(INITIAL); RETURNNAME;
  1212. X    YY_BREAK
  1213. Xcase 34:
  1214. X# line 210 "scan.l"
  1215. X++linenum; BEGIN(INITIAL);
  1216. X    YY_BREAK
  1217. Xcase 35:
  1218. X# line 211 "scan.l"
  1219. X
  1220. X    YY_BREAK
  1221. Xcase 36:
  1222. X# line 212 "scan.l"
  1223. X{
  1224. X            if ( all_upper( yytext ) )
  1225. X                reject_really_used = checking_used;
  1226. X            else
  1227. X                synerr( "unrecognized %used/%unused construct" );
  1228. X            }
  1229. X    YY_BREAK
  1230. Xcase 37:
  1231. X# line 218 "scan.l"
  1232. X{
  1233. X            if ( all_lower( yytext ) )
  1234. X                yymore_really_used = checking_used;
  1235. X            else
  1236. X                synerr( "unrecognized %used/%unused construct" );
  1237. X            }
  1238. X    YY_BREAK
  1239. Xcase 38:
  1240. X# line 224 "scan.l"
  1241. Xsynerr( "unrecognized %used/%unused construct" );
  1242. X    YY_BREAK
  1243. Xcase 39:
  1244. X# line 227 "scan.l"
  1245. X++linenum; BEGIN(INITIAL);
  1246. X    YY_BREAK
  1247. Xcase 40:
  1248. X# line 228 "scan.l"
  1249. X++num_xlations; new_xlation = true;
  1250. X    YY_BREAK
  1251. Xcase 41:
  1252. X# line 229 "scan.l"
  1253. Xsynerr( "bad row in translation table" );
  1254. X    YY_BREAK
  1255. Xcase 42:
  1256. X# line 230 "scan.l"
  1257. X/* ignore whitespace */
  1258. X    YY_BREAK
  1259. Xcase 43:
  1260. X# line 232 "scan.l"
  1261. X{
  1262. X            xlation[myesc( yytext )] =
  1263. X                (new_xlation ? num_xlations : -num_xlations);
  1264. X            new_xlation = false;
  1265. X            }
  1266. X    YY_BREAK
  1267. Xcase 44:
  1268. X# line 237 "scan.l"
  1269. X{
  1270. X            xlation[yytext[0]] =
  1271. X                (new_xlation ? num_xlations : -num_xlations);
  1272. X            new_xlation = false;
  1273. X            }
  1274. X    YY_BREAK
  1275. Xcase 45:
  1276. X# line 243 "scan.l"
  1277. X++linenum;
  1278. X    YY_BREAK
  1279. Xcase 46:
  1280. X*yy_cp = yy_hold_char; /* undo effects of setting up yytext */
  1281. Xyy_c_buf_p = yy_cp -= 1;
  1282. XYY_DO_BEFORE_ACTION; /* set up yytext again */
  1283. X# line 246 "scan.l"
  1284. X{
  1285. X            ++linenum;
  1286. X            ACTION_ECHO;
  1287. X            MARK_END_OF_PROLOG;
  1288. X            BEGIN(SECT2);
  1289. X            }
  1290. X    YY_BREAK
  1291. Xcase 47:
  1292. X# line 253 "scan.l"
  1293. X++linenum; ACTION_ECHO;
  1294. X    YY_BREAK
  1295. Xcase YY_STATE_EOF(SECT2PROLOG):
  1296. X# line 255 "scan.l"
  1297. XMARK_END_OF_PROLOG; yyterminate();
  1298. X    YY_BREAK
  1299. Xcase 49:
  1300. X# line 257 "scan.l"
  1301. X++linenum; /* allow blank lines in section 2 */
  1302. X    YY_BREAK
  1303. Xcase 50:
  1304. X# line 259 "scan.l"
  1305. X{
  1306. X            indented_code = (yytext[0] != '%');
  1307. X            doing_codeblock = true;
  1308. X            bracelevel = 1;
  1309. X
  1310. X            if ( indented_code )
  1311. X                ACTION_ECHO;
  1312. X
  1313. X            BEGIN(CODEBLOCK_2);
  1314. X            }
  1315. X    YY_BREAK
  1316. Xcase 51:
  1317. X# line 270 "scan.l"
  1318. XBEGIN(SC); return ( '<' );
  1319. X    YY_BREAK
  1320. Xcase 52:
  1321. X# line 271 "scan.l"
  1322. Xreturn ( '^' );
  1323. X    YY_BREAK
  1324. Xcase 53:
  1325. X# line 272 "scan.l"
  1326. XBEGIN(QUOTE); return ( '"' );
  1327. X    YY_BREAK
  1328. Xcase 54:
  1329. X*yy_cp = yy_hold_char; /* undo effects of setting up yytext */
  1330. Xyy_c_buf_p = yy_cp = yy_bp + 1;
  1331. XYY_DO_BEFORE_ACTION; /* set up yytext again */
  1332. X# line 273 "scan.l"
  1333. XBEGIN(NUM); return ( '{' );
  1334. X    YY_BREAK
  1335. Xcase 55:
  1336. X# line 274 "scan.l"
  1337. XBEGIN(BRACEERROR);
  1338. X    YY_BREAK
  1339. Xcase 56:
  1340. X*yy_cp = yy_hold_char; /* undo effects of setting up yytext */
  1341. Xyy_c_buf_p = yy_cp = yy_bp + 1;
  1342. XYY_DO_BEFORE_ACTION; /* set up yytext again */
  1343. X# line 275 "scan.l"
  1344. Xreturn ( '$' );
  1345. X    YY_BREAK
  1346. Xcase 57:
  1347. X# line 277 "scan.l"
  1348. X{
  1349. X            bracelevel = 1;
  1350. X            BEGIN(PERCENT_BRACE_ACTION);
  1351. X            return ( '\n' );
  1352. X            }
  1353. X    YY_BREAK
  1354. Xcase 58:
  1355. X# line 282 "scan.l"
  1356. Xcontinued_action = true; ++linenum; return ( '\n' );
  1357. X    YY_BREAK
  1358. Xcase 59:
  1359. X# line 284 "scan.l"
  1360. X{
  1361. X            /* this rule is separate from the one below because
  1362. X             * otherwise we get variable trailing context, so
  1363. X             * we can't build the scanner using -{f,F}
  1364. X             */
  1365. X            bracelevel = 0;
  1366. X            continued_action = false;
  1367. X            BEGIN(ACTION);
  1368. X            return ( '\n' );
  1369. X            }
  1370. X    YY_BREAK
  1371. Xcase 60:
  1372. X*yy_cp = yy_hold_char; /* undo effects of setting up yytext */
  1373. Xyy_c_buf_p = yy_cp -= 1;
  1374. XYY_DO_BEFORE_ACTION; /* set up yytext again */
  1375. X# line 295 "scan.l"
  1376. X{
  1377. X            bracelevel = 0;
  1378. X            continued_action = false;
  1379. X            BEGIN(ACTION);
  1380. X            return ( '\n' );
  1381. X            }
  1382. X    YY_BREAK
  1383. Xcase 61:
  1384. X# line 302 "scan.l"
  1385. X++linenum; return ( '\n' );
  1386. X    YY_BREAK
  1387. Xcase 62:
  1388. X# line 304 "scan.l"
  1389. Xreturn ( EOF_OP );
  1390. X    YY_BREAK
  1391. Xcase 63:
  1392. X# line 306 "scan.l"
  1393. X{
  1394. X            sectnum = 3;
  1395. X            BEGIN(SECT3);
  1396. X            return ( EOF ); /* to stop the parser */
  1397. X            }
  1398. X    YY_BREAK
  1399. Xcase 64:
  1400. X# line 312 "scan.l"
  1401. X{
  1402. X            int cclval;
  1403. X
  1404. X            (void) strcpy( nmstr, (char *) yytext );
  1405. X
  1406. X            /* check to see if we've already encountered this ccl */
  1407. X            if ( (cclval = ccllookup( (Char *) nmstr )) )
  1408. X                {
  1409. X                yylval = cclval;
  1410. X                ++cclreuse;
  1411. X                return ( PREVCCL );
  1412. X                }
  1413. X            else
  1414. X                {
  1415. X                /* we fudge a bit.  We know that this ccl will
  1416. X                 * soon be numbered as lastccl + 1 by cclinit
  1417. X                 */
  1418. X                cclinstal( (Char *) nmstr, lastccl + 1 );
  1419. X
  1420. X                /* push back everything but the leading bracket
  1421. X                 * so the ccl can be rescanned
  1422. X                 */
  1423. X                PUT_BACK_STRING((Char *) nmstr, 1);
  1424. X
  1425. X                BEGIN(FIRSTCCL);
  1426. X                return ( '[' );
  1427. X                }
  1428. X            }
  1429. X    YY_BREAK
  1430. Xcase 65:
  1431. X# line 341 "scan.l"
  1432. X{
  1433. X            register Char *nmdefptr;
  1434. X            Char *ndlookup();
  1435. X
  1436. X            (void) strcpy( nmstr, (char *) yytext );
  1437. X            nmstr[yyleng - 1] = '\0';  /* chop trailing brace */
  1438. X
  1439. X            /* lookup from "nmstr + 1" to chop leading brace */
  1440. X            if ( ! (nmdefptr = ndlookup( nmstr + 1 )) )
  1441. X                synerr( "undefined {name}" );
  1442. X
  1443. X            else
  1444. X                { /* push back name surrounded by ()'s */
  1445. X                unput(')');
  1446. X                PUT_BACK_STRING(nmdefptr, 0);
  1447. X                unput('(');
  1448. X                }
  1449. X            }
  1450. X    YY_BREAK
  1451. Xcase 66:
  1452. X# line 360 "scan.l"
  1453. Xreturn ( yytext[0] );
  1454. X    YY_BREAK
  1455. Xcase 67:
  1456. X# line 361 "scan.l"
  1457. XRETURNCHAR;
  1458. X    YY_BREAK
  1459. Xcase 68:
  1460. X# line 362 "scan.l"
  1461. X++linenum; return ( '\n' );
  1462. X    YY_BREAK
  1463. Xcase 69:
  1464. X# line 365 "scan.l"
  1465. Xreturn ( ',' );
  1466. X    YY_BREAK
  1467. Xcase 70:
  1468. X# line 366 "scan.l"
  1469. XBEGIN(SECT2); return ( '>' );
  1470. X    YY_BREAK
  1471. Xcase 71:
  1472. X*yy_cp = yy_hold_char; /* undo effects of setting up yytext */
  1473. Xyy_c_buf_p = yy_cp = yy_bp + 1;
  1474. XYY_DO_BEFORE_ACTION; /* set up yytext again */
  1475. X# line 367 "scan.l"
  1476. XBEGIN(CARETISBOL); return ( '>' );
  1477. X    YY_BREAK
  1478. Xcase 72:
  1479. X# line 368 "scan.l"
  1480. XRETURNNAME;
  1481. X    YY_BREAK
  1482. Xcase 73:
  1483. X# line 369 "scan.l"
  1484. Xsynerr( "bad start condition name" );
  1485. X    YY_BREAK
  1486. Xcase 74:
  1487. X# line 371 "scan.l"
  1488. XBEGIN(SECT2); return ( '^' );
  1489. X    YY_BREAK
  1490. Xcase 75:
  1491. X# line 374 "scan.l"
  1492. XRETURNCHAR;
  1493. X    YY_BREAK
  1494. Xcase 76:
  1495. X# line 375 "scan.l"
  1496. XBEGIN(SECT2); return ( '"' );
  1497. X    YY_BREAK
  1498. Xcase 77:
  1499. X# line 377 "scan.l"
  1500. X{
  1501. X            synerr( "missing quote" );
  1502. X            BEGIN(SECT2);
  1503. X            ++linenum;
  1504. X            return ( '"' );
  1505. X            }
  1506. X    YY_BREAK
  1507. Xcase 78:
  1508. X*yy_cp = yy_hold_char; /* undo effects of setting up yytext */
  1509. Xyy_c_buf_p = yy_cp = yy_bp + 1;
  1510. XYY_DO_BEFORE_ACTION; /* set up yytext again */
  1511. X# line 385 "scan.l"
  1512. XBEGIN(CCL); return ( '^' );
  1513. X    YY_BREAK
  1514. Xcase 79:
  1515. X*yy_cp = yy_hold_char; /* undo effects of setting up yytext */
  1516. Xyy_c_buf_p = yy_cp = yy_bp + 1;
  1517. XYY_DO_BEFORE_ACTION; /* set up yytext again */
  1518. X# line 386 "scan.l"
  1519. Xreturn ( '^' );
  1520. X    YY_BREAK
  1521. Xcase 80:
  1522. X# line 387 "scan.l"
  1523. XBEGIN(CCL); yylval = '-'; return ( CHAR );
  1524. X    YY_BREAK
  1525. Xcase 81:
  1526. X# line 388 "scan.l"
  1527. XBEGIN(CCL); RETURNCHAR;
  1528. X    YY_BREAK
  1529. Xcase 82:
  1530. X*yy_cp = yy_hold_char; /* undo effects of setting up yytext */
  1531. Xyy_c_buf_p = yy_cp = yy_bp + 1;
  1532. XYY_DO_BEFORE_ACTION; /* set up yytext again */
  1533. X# line 390 "scan.l"
  1534. Xreturn ( '-' );
  1535. X    YY_BREAK
  1536. Xcase 83:
  1537. X# line 391 "scan.l"
  1538. XRETURNCHAR;
  1539. X    YY_BREAK
  1540. Xcase 84:
  1541. X# line 392 "scan.l"
  1542. XBEGIN(SECT2); return ( ']' );
  1543. X    YY_BREAK
  1544. Xcase 85:
  1545. X# line 395 "scan.l"
  1546. X{
  1547. X            yylval = myctoi( yytext );
  1548. X            return ( NUMBER );
  1549. X            }
  1550. X    YY_BREAK
  1551. Xcase 86:
  1552. X# line 400 "scan.l"
  1553. Xreturn ( ',' );
  1554. X    YY_BREAK
  1555. Xcase 87:
  1556. X# line 401 "scan.l"
  1557. XBEGIN(SECT2); return ( '}' );
  1558. X    YY_BREAK
  1559. Xcase 88:
  1560. X# line 403 "scan.l"
  1561. X{
  1562. X            synerr( "bad character inside {}'s" );
  1563. X            BEGIN(SECT2);
  1564. X            return ( '}' );
  1565. X            }
  1566. X    YY_BREAK
  1567. Xcase 89:
  1568. X# line 409 "scan.l"
  1569. X{
  1570. X            synerr( "missing }" );
  1571. X            BEGIN(SECT2);
  1572. X            ++linenum;
  1573. X            return ( '}' );
  1574. X            }
  1575. X    YY_BREAK
  1576. Xcase 90:
  1577. X# line 417 "scan.l"
  1578. Xsynerr( "bad name in {}'s" ); BEGIN(SECT2);
  1579. X    YY_BREAK
  1580. Xcase 91:
  1581. X# line 418 "scan.l"
  1582. Xsynerr( "missing }" ); ++linenum; BEGIN(SECT2);
  1583. X    YY_BREAK
  1584. Xcase 92:
  1585. X# line 421 "scan.l"
  1586. Xbracelevel = 0;
  1587. X    YY_BREAK
  1588. Xcase 93:
  1589. X# line 422 "scan.l"
  1590. X{
  1591. X            ACTION_ECHO;
  1592. X            CHECK_REJECT(yytext);
  1593. X            }
  1594. X    YY_BREAK
  1595. Xcase 94:
  1596. X# line 426 "scan.l"
  1597. X{
  1598. X            ACTION_ECHO;
  1599. X            CHECK_YYMORE(yytext);
  1600. X            }
  1601. X    YY_BREAK
  1602. Xcase 95:
  1603. X# line 430 "scan.l"
  1604. XACTION_ECHO;
  1605. X    YY_BREAK
  1606. Xcase 96:
  1607. X# line 431 "scan.l"
  1608. X{
  1609. X            ++linenum;
  1610. X            ACTION_ECHO;
  1611. X            if ( bracelevel == 0 ||
  1612. X                 (doing_codeblock && indented_code) )
  1613. X                {
  1614. X                if ( ! doing_codeblock )
  1615. X                fputs( "\tYY_BREAK\n", temp_action_file );
  1616. X                
  1617. X                doing_codeblock = false;
  1618. X                BEGIN(SECT2);
  1619. X                }
  1620. X            }
  1621. X    YY_BREAK
  1622. X    /* Reject and YYmore() are checked for above, in PERCENT_BRACE_ACTION */
  1623. Xcase 97:
  1624. X# line 447 "scan.l"
  1625. XACTION_ECHO; ++bracelevel;
  1626. X    YY_BREAK
  1627. Xcase 98:
  1628. X# line 448 "scan.l"
  1629. XACTION_ECHO; --bracelevel;
  1630. X    YY_BREAK
  1631. Xcase 99:
  1632. X# line 449 "scan.l"
  1633. XACTION_ECHO;
  1634. X    YY_BREAK
  1635. Xcase 100:
  1636. X# line 450 "scan.l"
  1637. XACTION_ECHO;
  1638. X    YY_BREAK
  1639. Xcase 101:
  1640. X# line 451 "scan.l"
  1641. XACTION_ECHO; BEGIN(ACTION_COMMENT);
  1642. X    YY_BREAK
  1643. Xcase 102:
  1644. X# line 452 "scan.l"
  1645. XACTION_ECHO; /* character constant */
  1646. X    YY_BREAK
  1647. Xcase 103:
  1648. X# line 453 "scan.l"
  1649. XACTION_ECHO; BEGIN(ACTION_STRING);
  1650. X    YY_BREAK
  1651. Xcase 104:
  1652. X# line 454 "scan.l"
  1653. X{
  1654. X            ++linenum;
  1655. X            ACTION_ECHO;
  1656. X            if ( bracelevel == 0 )
  1657. X                {
  1658. X                fputs( "\tYY_BREAK\n", temp_action_file );
  1659. X                BEGIN(SECT2);
  1660. X                }
  1661. X            }
  1662. X    YY_BREAK
  1663. Xcase 105:
  1664. X# line 463 "scan.l"
  1665. XACTION_ECHO;
  1666. X    YY_BREAK
  1667. Xcase 106:
  1668. X# line 465 "scan.l"
  1669. XACTION_ECHO; BEGIN(ACTION);
  1670. X    YY_BREAK
  1671. Xcase 107:
  1672. X# line 466 "scan.l"
  1673. XACTION_ECHO;
  1674. X    YY_BREAK
  1675. Xcase 108:
  1676. X# line 467 "scan.l"
  1677. XACTION_ECHO;
  1678. X    YY_BREAK
  1679. Xcase 109:
  1680. X# line 468 "scan.l"
  1681. X++linenum; ACTION_ECHO;
  1682. X    YY_BREAK
  1683. Xcase 110:
  1684. X# line 469 "scan.l"
  1685. XACTION_ECHO;
  1686. X    YY_BREAK
  1687. Xcase 111:
  1688. X# line 471 "scan.l"
  1689. XACTION_ECHO;
  1690. X    YY_BREAK
  1691. Xcase 112:
  1692. X# line 472 "scan.l"
  1693. XACTION_ECHO;
  1694. X    YY_BREAK
  1695. Xcase 113:
  1696. X# line 473 "scan.l"
  1697. X++linenum; ACTION_ECHO;
  1698. X    YY_BREAK
  1699. Xcase 114:
  1700. X# line 474 "scan.l"
  1701. XACTION_ECHO; BEGIN(ACTION);
  1702. X    YY_BREAK
  1703. Xcase 115:
  1704. X# line 475 "scan.l"
  1705. XACTION_ECHO;
  1706. X    YY_BREAK
  1707. Xcase YY_STATE_EOF(ACTION):
  1708. Xcase YY_STATE_EOF(ACTION_COMMENT):
  1709. Xcase YY_STATE_EOF(ACTION_STRING):
  1710. X# line 477 "scan.l"
  1711. X{
  1712. X            synerr( "EOF encountered inside an action" );
  1713. X            yyterminate();
  1714. X            }
  1715. X    YY_BREAK
  1716. Xcase 117:
  1717. X# line 483 "scan.l"
  1718. X{
  1719. X            yylval = myesc( yytext );
  1720. X            return ( CHAR );
  1721. X            }
  1722. X    YY_BREAK
  1723. Xcase 118:
  1724. X# line 488 "scan.l"
  1725. X{
  1726. X            yylval = myesc( yytext );
  1727. X            BEGIN(CCL);
  1728. X            return ( CHAR );
  1729. X            }
  1730. X    YY_BREAK
  1731. Xcase 119:
  1732. X# line 495 "scan.l"
  1733. XECHO;
  1734. X    YY_BREAK
  1735. Xcase 120:
  1736. X# line 496 "scan.l"
  1737. XYY_FATAL_ERROR( "flex scanner jammed" );
  1738. X    YY_BREAK
  1739. Xcase YY_STATE_EOF(INITIAL):
  1740. Xcase YY_STATE_EOF(SECT2):
  1741. Xcase YY_STATE_EOF(SECT3):
  1742. Xcase YY_STATE_EOF(CODEBLOCK):
  1743. Xcase YY_STATE_EOF(PICKUPDEF):
  1744. Xcase YY_STATE_EOF(SC):
  1745. Xcase YY_STATE_EOF(CARETISBOL):
  1746. Xcase YY_STATE_EOF(NUM):
  1747. Xcase YY_STATE_EOF(QUOTE):
  1748. Xcase YY_STATE_EOF(FIRSTCCL):
  1749. Xcase YY_STATE_EOF(CCL):
  1750. Xcase YY_STATE_EOF(RECOVER):
  1751. Xcase YY_STATE_EOF(BRACEERROR):
  1752. Xcase YY_STATE_EOF(C_COMMENT):
  1753. Xcase YY_STATE_EOF(PERCENT_BRACE_ACTION):
  1754. Xcase YY_STATE_EOF(USED_LIST):
  1755. Xcase YY_STATE_EOF(CODEBLOCK_2):
  1756. Xcase YY_STATE_EOF(XLATION):
  1757. X    yyterminate();
  1758. X
  1759. X        case YY_END_OF_BUFFER:
  1760. X        {
  1761. X        /* amount of text matched not including the EOB char */
  1762. X        int yy_amount_of_matched_text = yy_cp - yytext - 1;
  1763. X
  1764. X        /* undo the effects of YY_DO_BEFORE_ACTION */
  1765. X        *yy_cp = yy_hold_char;
  1766. X
  1767. X        /* note that here we test for yy_c_buf_p "<=" to the position
  1768. X         * of the first EOB in the buffer, since yy_c_buf_p will
  1769. X         * already have been incremented past the NUL character
  1770. X         * (since all states make transitions on EOB to the end-
  1771. X         * of-buffer state).  Contrast this with the test in yyinput().
  1772. X         */
  1773. X        if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] )
  1774. X            /* this was really a NUL */
  1775. X            {
  1776. X            yy_state_type yy_next_state;
  1777. X
  1778. X            yy_c_buf_p = yytext + yy_amount_of_matched_text;
  1779. X
  1780. X            yy_current_state = yy_get_previous_state();
  1781. X
  1782. X            /* okay, we're now positioned to make the
  1783. X             * NUL transition.  We couldn't have
  1784. X             * yy_get_previous_state() go ahead and do it
  1785. X             * for us because it doesn't know how to deal
  1786. X             * with the possibility of jamming (and we
  1787. X             * don't want to build jamming into it because
  1788. X             * then it will run more slowly)
  1789. X             */
  1790. X
  1791. X            yy_next_state = yy_try_NUL_trans( yy_current_state );
  1792. X
  1793. X            yy_bp = yytext + YY_MORE_ADJ;
  1794. X
  1795. X            if ( yy_next_state )
  1796. X            {
  1797. X            /* consume the NUL */
  1798. X            yy_cp = ++yy_c_buf_p;
  1799. X            yy_current_state = yy_next_state;
  1800. X            goto yy_match;
  1801. X            }
  1802. X
  1803. X            else
  1804. X            {
  1805. X                yy_cp = yy_last_accepting_cpos;
  1806. X                yy_current_state = yy_last_accepting_state;
  1807. X            goto yy_find_action;
  1808. X            }
  1809. X            }
  1810. X
  1811. X        else switch ( yy_get_next_buffer() )
  1812. X            {
  1813. X            case EOB_ACT_END_OF_FILE:
  1814. X            {
  1815. X            yy_did_buffer_switch_on_eof = 0;
  1816. X
  1817. X            if ( yywrap() )
  1818. X                {
  1819. X                /* note: because we've taken care in
  1820. X                 * yy_get_next_buffer() to have set up yytext,
  1821. X                 * we can now set up yy_c_buf_p so that if some
  1822. X                 * total hoser (like flex itself) wants
  1823. X                 * to call the scanner after we return the
  1824. X                 * YY_NULL, it'll still work - another YY_NULL
  1825. X                 * will get returned.
  1826. X                 */
  1827. X                yy_c_buf_p = yytext + YY_MORE_ADJ;
  1828. X
  1829. X                yy_act = YY_STATE_EOF((yy_start - 1) / 2);
  1830. X                goto do_action;
  1831. X                }
  1832. X
  1833. X            else
  1834. X                {
  1835. X                if ( ! yy_did_buffer_switch_on_eof )
  1836. X                YY_NEW_FILE;
  1837. X                }
  1838. X            }
  1839. X            break;
  1840. X
  1841. X            case EOB_ACT_CONTINUE_SCAN:
  1842. X            yy_c_buf_p = yytext + yy_amount_of_matched_text;
  1843. X
  1844. X            yy_current_state = yy_get_previous_state();
  1845. X
  1846. X            yy_cp = yy_c_buf_p;
  1847. X            yy_bp = yytext + YY_MORE_ADJ;
  1848. X            goto yy_match;
  1849. X
  1850. X            case EOB_ACT_LAST_MATCH:
  1851. X            yy_c_buf_p =
  1852. X                &yy_current_buffer->yy_ch_buf[yy_n_chars];
  1853. X
  1854. X            yy_current_state = yy_get_previous_state();
  1855. X
  1856. X            yy_cp = yy_c_buf_p;
  1857. X            yy_bp = yytext + YY_MORE_ADJ;
  1858. X            goto yy_find_action;
  1859. X            }
  1860. X        break;
  1861. X        }
  1862. X
  1863. X        default:
  1864. X#ifdef FLEX_DEBUG
  1865. X        printf( "action # %d\n", yy_act );
  1866. X#endif
  1867. X        YY_FATAL_ERROR(
  1868. X            "fatal flex scanner internal error--no action found" );
  1869. X        }
  1870. X    }
  1871. X    }
  1872. X
  1873. X
  1874. X/* yy_get_next_buffer - try to read in a new buffer
  1875. X *
  1876. X * synopsis
  1877. X *     int yy_get_next_buffer();
  1878. X *     
  1879. X * returns a code representing an action
  1880. X *     EOB_ACT_LAST_MATCH - 
  1881. X *     EOB_ACT_CONTINUE_SCAN - continue scanning from current position
  1882. X *     EOB_ACT_END_OF_FILE - end of file
  1883. X */
  1884. X
  1885. Xstatic int yy_get_next_buffer()
  1886. X
  1887. X    {
  1888. X    register YY_CHAR *dest = yy_current_buffer->yy_ch_buf;
  1889. X    register YY_CHAR *source = yytext - 1; /* copy prev. char, too */
  1890. X    register int number_to_move, i;
  1891. X    int ret_val;
  1892. X
  1893. X    if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] )
  1894. X    YY_FATAL_ERROR(
  1895. X        "fatal flex scanner internal error--end of buffer missed" );
  1896. X
  1897. X    /* try to read more data */
  1898. X
  1899. X    /* first move last chars to start of buffer */
  1900. X    number_to_move = yy_c_buf_p - yytext;
  1901. X
  1902. X    for ( i = 0; i < number_to_move; ++i )
  1903. X    *(dest++) = *(source++);
  1904. X
  1905. X    if ( yy_current_buffer->yy_eof_status != EOF_NOT_SEEN )
  1906. X    /* don't do the read, it's not guaranteed to return an EOF,
  1907. X     * just force an EOF
  1908. X     */
  1909. X    yy_n_chars = 0;
  1910. X
  1911. X    else
  1912. X    {
  1913. X    int num_to_read = yy_current_buffer->yy_buf_size - number_to_move - 1;
  1914. X
  1915. X    if ( num_to_read > YY_READ_BUF_SIZE )
  1916. X        num_to_read = YY_READ_BUF_SIZE;
  1917. X
  1918. X    else if ( num_to_read <= 0 )
  1919. X        YY_FATAL_ERROR( "fatal error - scanner input buffer overflow" );
  1920. X
  1921. X    /* read in more data */
  1922. X    YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]),
  1923. X          yy_n_chars, num_to_read );
  1924. X    }
  1925. X
  1926. X    if ( yy_n_chars == 0 )
  1927. X    {
  1928. X    if ( number_to_move == 1 )
  1929. X        {
  1930. X        ret_val = EOB_ACT_END_OF_FILE;
  1931. X        yy_current_buffer->yy_eof_status = EOF_DONE;
  1932. X        }
  1933. X
  1934. X    else
  1935. X        {
  1936. X        ret_val = EOB_ACT_LAST_MATCH;
  1937. X        yy_current_buffer->yy_eof_status = EOF_PENDING;
  1938. X        }
  1939. X    }
  1940. X
  1941. X    else
  1942. X    ret_val = EOB_ACT_CONTINUE_SCAN;
  1943. X
  1944. X    yy_n_chars += number_to_move;
  1945. X    yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR;
  1946. X    yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
  1947. X
  1948. X    /* yytext begins at the second character in yy_ch_buf; the first
  1949. X     * character is the one which preceded it before reading in the latest
  1950. X     * buffer; it needs to be kept around in case it's a newline, so
  1951. X     * yy_get_previous_state() will have with '^' rules active
  1952. X     */
  1953. X
  1954. X    yytext = &yy_current_buffer->yy_ch_buf[1];
  1955. X
  1956. X    return ( ret_val );
  1957. X    }
  1958. X
  1959. X
  1960. X/* yy_get_previous_state - get the state just before the EOB char was reached
  1961. X *
  1962. X * synopsis
  1963. X *     yy_state_type yy_get_previous_state();
  1964. X */
  1965. X
  1966. Xstatic yy_state_type yy_get_previous_state()
  1967. X
  1968. X    {
  1969. X    register yy_state_type yy_current_state;
  1970. X    register YY_CHAR *yy_cp;
  1971. X
  1972. X    register YY_CHAR *yy_bp = yytext;
  1973. X
  1974. X    yy_current_state = yy_start;
  1975. X    if ( yy_bp[-1] == '\n' )
  1976. X    ++yy_current_state;
  1977. X
  1978. X    for ( yy_cp = yytext + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )
  1979. X    {
  1980. X    register YY_CHAR yy_c = (*yy_cp ? yy_ec[*yy_cp] : 1);
  1981. X    if ( yy_accept[yy_current_state] )
  1982. X        {
  1983. X        yy_last_accepting_state = yy_current_state;
  1984. X        yy_last_accepting_cpos = yy_cp;
  1985. X        }
  1986. X    while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  1987. X        {
  1988. X        yy_current_state = yy_def[yy_current_state];
  1989. X        if ( yy_current_state >= 341 )
  1990. X        yy_c = yy_meta[yy_c];
  1991. X        }
  1992. X    yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
  1993. X    }
  1994. X
  1995. X    return ( yy_current_state );
  1996. X    }
  1997. X
  1998. X
  1999. X/* yy_try_NUL_trans - try to make a transition on the NUL character
  2000. X *
  2001. X * synopsis
  2002. X *     next_state = yy_try_NUL_trans( current_state );
  2003. X */
  2004. X
  2005. X#ifdef YY_USE_PROTOS
  2006. Xstatic yy_state_type yy_try_NUL_trans( register yy_state_type yy_current_state )
  2007. X#else
  2008. Xstatic yy_state_type yy_try_NUL_trans( yy_current_state )
  2009. Xregister yy_state_type yy_current_state;
  2010. X#endif
  2011. X
  2012. X    {
  2013. X    register int yy_is_jam;
  2014. X    register YY_CHAR *yy_cp = yy_c_buf_p;
  2015. X
  2016. X    register YY_CHAR yy_c = 1;
  2017. X    if ( yy_accept[yy_current_state] )
  2018. X    {
  2019. X    yy_last_accepting_state = yy_current_state;
  2020. X    yy_last_accepting_cpos = yy_cp;
  2021. X    }
  2022. X    while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  2023. X    {
  2024. X    yy_current_state = yy_def[yy_current_state];
  2025. X    if ( yy_current_state >= 341 )
  2026. X        yy_c = yy_meta[yy_c];
  2027. X    }
  2028. X    yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
  2029. X    yy_is_jam = (yy_current_state == 340);
  2030. X
  2031. X    return ( yy_is_jam ? 0 : yy_current_state );
  2032. X    }
  2033. X
  2034. X
  2035. X#ifdef YY_USE_PROTOS
  2036. Xstatic void yyunput( YY_CHAR c, register YY_CHAR *yy_bp )
  2037. X#else
  2038. Xstatic void yyunput( c, yy_bp )
  2039. XYY_CHAR c;
  2040. Xregister YY_CHAR *yy_bp;
  2041. X#endif
  2042. X
  2043. X    {
  2044. X    register YY_CHAR *yy_cp = yy_c_buf_p;
  2045. X
  2046. X    /* undo effects of setting up yytext */
  2047. X    *yy_cp = yy_hold_char;
  2048. X
  2049. X    if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
  2050. X    { /* need to shift things up to make room */
  2051. X    register int number_to_move = yy_n_chars + 2; /* +2 for EOB chars */
  2052. X    register YY_CHAR *dest =
  2053. X        &yy_current_buffer->yy_ch_buf[yy_current_buffer->yy_buf_size + 2];
  2054. X    register YY_CHAR *source =
  2055. X        &yy_current_buffer->yy_ch_buf[number_to_move];
  2056. X
  2057. X    while ( source > yy_current_buffer->yy_ch_buf )
  2058. X        *--dest = *--source;
  2059. X
  2060. X    yy_cp += dest - source;
  2061. X    yy_bp += dest - source;
  2062. X    yy_n_chars = yy_current_buffer->yy_buf_size;
  2063. X
  2064. X    if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
  2065. X        YY_FATAL_ERROR( "flex scanner push-back overflow" );
  2066. X    }
  2067. X
  2068. X    if ( yy_cp > yy_bp && yy_cp[-1] == '\n' )
  2069. X    yy_cp[-2] = '\n';
  2070. X
  2071. X    *--yy_cp = c;
  2072. X
  2073. X    /* note: the formal parameter *must* be called "yy_bp" for this
  2074. X     *       macro to now work correctly
  2075. X     */
  2076. X    YY_DO_BEFORE_ACTION; /* set up yytext again */
  2077. X    }
  2078. X
  2079. X
  2080. X#ifdef __cplusplus
  2081. Xstatic int yyinput()
  2082. X#else
  2083. Xstatic int input()
  2084. X#endif
  2085. X
  2086. X    {
  2087. X    int c;
  2088. X    YY_CHAR *yy_cp = yy_c_buf_p;
  2089. X
  2090. X    *yy_cp = yy_hold_char;
  2091. X
  2092. X    if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
  2093. X    {
  2094. X    /* yy_c_buf_p now points to the character we want to return.
  2095. X     * If this occurs *before* the EOB characters, then it's a
  2096. X     * valid NUL; if not, then we've hit the end of the buffer.
  2097. X     */
  2098. X    if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] )
  2099. X        /* this was really a NUL */
  2100. X        *yy_c_buf_p = '\0';
  2101. X
  2102. X    else
  2103. X        { /* need more input */
  2104. X        yytext = yy_c_buf_p;
  2105. X        ++yy_c_buf_p;
  2106. X
  2107. X        switch ( yy_get_next_buffer() )
  2108. X        {
  2109. X        case EOB_ACT_END_OF_FILE:
  2110. X            {
  2111. X            if ( yywrap() )
  2112. X            {
  2113. X            yy_c_buf_p = yytext + YY_MORE_ADJ;
  2114. X            return ( EOF );
  2115. X            }
  2116. X
  2117. X            YY_NEW_FILE;
  2118. X
  2119. X#ifdef __cplusplus
  2120. X            return ( yyinput() );
  2121. X#else
  2122. X            return ( input() );
  2123. X#endif
  2124. X            }
  2125. X            break;
  2126. X
  2127. X        case EOB_ACT_CONTINUE_SCAN:
  2128. X            yy_c_buf_p = yytext + YY_MORE_ADJ;
  2129. X            break;
  2130. X
  2131. X        case EOB_ACT_LAST_MATCH:
  2132. X#ifdef __cplusplus
  2133. X            YY_FATAL_ERROR( "unexpected last match in yyinput()" );
  2134. X#else
  2135. X            YY_FATAL_ERROR( "unexpected last match in input()" );
  2136. X#endif
  2137. X        }
  2138. X        }
  2139. X    }
  2140. X
  2141. X    c = *yy_c_buf_p;
  2142. X    yy_hold_char = *++yy_c_buf_p;
  2143. X
  2144. X    return ( c );
  2145. X    }
  2146. X
  2147. X
  2148. X#ifdef YY_USE_PROTOS
  2149. Xvoid yyrestart( FILE *input_file )
  2150. X#else
  2151. Xvoid yyrestart( input_file )
  2152. XFILE *input_file;
  2153. X#endif
  2154. X
  2155. X    {
  2156. X    yy_init_buffer( yy_current_buffer, input_file );
  2157. X    yy_load_buffer_state();
  2158. X    }
  2159. X
  2160. X
  2161. X#ifdef YY_USE_PROTOS
  2162. Xvoid yy_switch_to_buffer( YY_BUFFER_STATE new_buffer )
  2163. X#else
  2164. Xvoid yy_switch_to_buffer( new_buffer )
  2165. XYY_BUFFER_STATE new_buffer;
  2166. X#endif
  2167. X
  2168. X    {
  2169. X    if ( yy_current_buffer == new_buffer )
  2170. X    return;
  2171. X
  2172. X    if ( yy_current_buffer )
  2173. X    {
  2174. X    /* flush out information for old buffer */
  2175. X    *yy_c_buf_p = yy_hold_char;
  2176. X    yy_current_buffer->yy_buf_pos = yy_c_buf_p;
  2177. X    yy_current_buffer->yy_n_chars = yy_n_chars;
  2178. X    }
  2179. X
  2180. X    yy_current_buffer = new_buffer;
  2181. X    yy_load_buffer_state();
  2182. X
  2183. X    /* we don't actually know whether we did this switch during
  2184. X     * EOF (yywrap()) processing, but the only time this flag
  2185. X     * is looked at is after yywrap() is called, so it's safe
  2186. X     * to go ahead and always set it.
  2187. X     */
  2188. X    yy_did_buffer_switch_on_eof = 1;
  2189. X    }
  2190. X
  2191. X
  2192. X#ifdef YY_USE_PROTOS
  2193. Xvoid yy_load_buffer_state( void )
  2194. X#else
  2195. Xvoid yy_load_buffer_state()
  2196. X#endif
  2197. X
  2198. X    {
  2199. X    yy_n_chars = yy_current_buffer->yy_n_chars;
  2200. X    yytext = yy_c_buf_p = yy_current_buffer->yy_buf_pos;
  2201. X    yyin = yy_current_buffer->yy_input_file;
  2202. X    yy_hold_char = *yy_c_buf_p;
  2203. X    }
  2204. X
  2205. X
  2206. X#ifdef YY_USE_PROTOS
  2207. XYY_BUFFER_STATE yy_create_buffer( FILE *file, int size )
  2208. X#else
  2209. XYY_BUFFER_STATE yy_create_buffer( file, size )
  2210. XFILE *file;
  2211. Xint size;
  2212. X#endif
  2213. X
  2214. X    {
  2215. X    YY_BUFFER_STATE b;
  2216. X
  2217. X    b = (YY_BUFFER_STATE) malloc( sizeof( struct yy_buffer_state ) );
  2218. X
  2219. X    if ( ! b )
  2220. X    YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
  2221. X
  2222. X    b->yy_buf_size = size;
  2223. X
  2224. X    /* yy_ch_buf has to be 2 characters longer than the size given because
  2225. X     * we need to put in 2 end-of-buffer characters.
  2226. X     */
  2227. X    b->yy_ch_buf = (YY_CHAR *) malloc( (unsigned) (b->yy_buf_size + 2) );
  2228. X
  2229. X    if ( ! b->yy_ch_buf )
  2230. X    YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
  2231. X
  2232. X    yy_init_buffer( b, file );
  2233. X
  2234. X    return ( b );
  2235. X    }
  2236. X
  2237. X
  2238. X#ifdef YY_USE_PROTOS
  2239. Xvoid yy_delete_buffer( YY_BUFFER_STATE b )
  2240. X#else
  2241. Xvoid yy_delete_buffer( b )
  2242. XYY_BUFFER_STATE b;
  2243. X#endif
  2244. X
  2245. X    {
  2246. X    if ( b == yy_current_buffer )
  2247. X    yy_current_buffer = (YY_BUFFER_STATE) 0;
  2248. X
  2249. X    free( (char *) b->yy_ch_buf );
  2250. X    free( (char *) b );
  2251. X    }
  2252. X
  2253. X
  2254. X#ifdef YY_USE_PROTOS
  2255. Xvoid yy_init_buffer( YY_BUFFER_STATE b, FILE *file )
  2256. X#else
  2257. Xvoid yy_init_buffer( b, file )
  2258. XYY_BUFFER_STATE b;
  2259. XFILE *file;
  2260. X#endif
  2261. X
  2262. X    {
  2263. X    b->yy_input_file = file;
  2264. X
  2265. X    /* we put in the '\n' and start reading from [1] so that an
  2266. X     * initial match-at-newline will be true.
  2267. X     */
  2268. X
  2269. X    b->yy_ch_buf[0] = '\n';
  2270. X    b->yy_n_chars = 1;
  2271. X
  2272. X    /* we always need two end-of-buffer characters.  The first causes
  2273. X     * a transition to the end-of-buffer state.  The second causes
  2274. X     * a jam in that state.
  2275. X     */
  2276. X    b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
  2277. X    b->yy_ch_buf[2] = YY_END_OF_BUFFER_CHAR;
  2278. X
  2279. X    b->yy_buf_pos = &b->yy_ch_buf[1];
  2280. X
  2281. X    b->yy_eof_status = EOF_NOT_SEEN;
  2282. X    }
  2283. X# line 496 "scan.l"
  2284. X
  2285. X
  2286. X
  2287. Xint yywrap()
  2288. X
  2289. X    {
  2290. X    if ( --num_input_files > 0 )
  2291. X    {
  2292. X    set_input_file( *++input_files );
  2293. X    return ( 0 );
  2294. X    }
  2295. X
  2296. X    else
  2297. X    return ( 1 );
  2298. X    }
  2299. X
  2300. X
  2301. X/* set_input_file - open the given file (if NULL, stdin) for scanning */
  2302. X
  2303. Xvoid set_input_file( file )
  2304. Xchar *file;
  2305. X
  2306. X    {
  2307. X    if ( file )
  2308. X    {
  2309. X    infilename = file;
  2310. X    yyin = fopen( infilename, "r" );
  2311. X
  2312. X    if ( yyin == NULL )
  2313. X        lerrsf( "can't open %s", file );
  2314. X    }
  2315. X
  2316. X    else
  2317. X    {
  2318. X    yyin = stdin;
  2319. X    infilename = "<stdin>";
  2320. X    }
  2321. X    }
  2322. END_OF_FILE
  2323. if test 67555 -ne `wc -c <'initscan.c'`; then
  2324.     echo shar: \"'initscan.c'\" unpacked with wrong size!
  2325. fi
  2326. # end of 'initscan.c'
  2327. fi
  2328. echo shar: End of archive 12 \(of 13\).
  2329. cp /dev/null ark12isdone
  2330. MISSING=""
  2331. for I in 1 2 3 4 5 6 7 8 9 10 11 12 13 ; do
  2332.     if test ! -f ark${I}isdone ; then
  2333.     MISSING="${MISSING} ${I}"
  2334.     fi
  2335. done
  2336. if test "${MISSING}" = "" ; then
  2337.     echo You have unpacked all 13 archives.
  2338.     rm -f ark[1-9]isdone ark[1-9][0-9]isdone
  2339. else
  2340.     echo You still need to unpack the following archives:
  2341.     echo "        " ${MISSING}
  2342. fi
  2343. ##  End of shell archive.
  2344. exit 0
  2345. -- 
  2346. Mail submissions (sources or binaries) to <amiga@uunet.uu.net>.
  2347. Mail comments to the moderator at <amiga-request@uunet.uu.net>.
  2348. Post requests for sources, and general discussion to comp.sys.amiga.
  2349.